ToolbarItem fails to handle 'selected' attribute in markup-based construction
Reported by: |
laurie@… |
Owned by: |
liucougar |
Priority:
|
high
|
Milestone:
|
|
Component:
|
Widgets
|
Version:
|
0.2
|
Keywords:
|
|
Cc:
|
|
Blocked By:
|
|
Blocking:
|
|
If you create a toolbar toggle item using markup and set it to be selected, it wont be. For example, using the following markup:
<span dojoType="ToolbarButton" toggleItem="true" selected="true"></span>
results in a call to ToolbarItem?.setSelected(true,undefined,undefined). But because this call occurs before setToggleItem() is called, it simply returns without doing anything.
The solution is probably to make setSelected simply update _selected and defer the other logic in the method to rendering time. Unfortunately, that would affect the semantics of the onSelect/onDeselect/onChangeSelect events for all ToolbarItem? sub-classes...
Change History (5)
Milestone: |
→ 0.3release
|
Owner: |
changed from anonymous to alex
|
Status: |
new →
assigned
|
Milestone: |
0.3release →
0.4
|
Owner: |
alex deleted
|
Status: |
assigned →
new
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
this should not be a problem for the new editor2 now
closed