Changes between Initial Version and Version 1 of Ticket #10466


Ignore:
Timestamp:
Dec 4, 2009, 4:01:27 PM (12 years ago)
Author:
Jared Jurkiewicz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10466 – Description

    initial v1  
    88}}}
    99
    10 1.)  You click in Paragraph 2.  Format dropdown updates to 'Paragraph' (Correct)
    11 2.)  Change it to Heading
    12 3.)  Click in to Paragraph 1.  Format dropdown updates back to 'Paragraph' (Correct)
    13 4.)  Try to change it to heading.  It will not change.
     101.)  You click in Paragraph 2.  Format dropdown updates to 'Paragraph' (Correct)[[BR]]
     112.)  Change it to Heading[[BR]]
     123.)  Click in to Paragraph 1.  Format dropdown updates back to 'Paragraph' (Correct)[[BR]]
     134.)  Try to change it to heading.  It will not change.[[BR]]
     14[[BR]]
    1415
    1516This occurs because the updateState function makes use of the 'priorityChange' parameter of attr for FilteringSelect.   This was needed because FilteringSelect's onChange operates asynchronously.  When update state changes the dropdown, you do not want an 'onChange' to happen, because onChange is attached to work as a user change vent and when it happens, the formatblock operation is called.  For state update,s you don't want to actually do an operation.  Since FilteringSelect is async, you can't just 'ignore' an event easily (since you don't know precisely when the state is going to fire).  So that priorityChange param is very useful here.