aharui commented on issue #678: Undo is not working on RadioButton
URL: https://github.com/apache/royale-asjs/issues/678#issuecomment-577822144
 
 
   I debugged your undo code as I suggested 8 days ago.  As currently written, 
the Undo code will not reset the radio buttons for a saved item.  The fn_Undo 
calls PopulateFormWithDGItem, which checks for `dg.selectedItem == null`.  It 
is null for a new item so it calls fn_ResetPage.  For a saved item, it calls 
setForm.  However, the arrFormItems passed to setForm does not contain the 
radioButtons because the radio buttons are children of a BorderContainer and 
arrFormItems is populated by top-level components.
   
   I do not know how this could work in Flex.  Maybe the radio buttons were not 
in  a BorderContainer or were otherwise added to arrFormItems, but I also do 
not see handling for RadioButtons in setForm.  Are you sure this code is 
exactly the same as the Flex code?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to