Skip to content

Commit

Permalink
MenuToolViewStack no longer resets choice to null when in ComboBox
Browse files Browse the repository at this point in the history
always-show-prompt mode
  • Loading branch information
adufilie committed Aug 10, 2015
1 parent 2f8159c commit f9c8f08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WeaveUI/src/weave/ui/MenuToolViewStack.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
prompt="{prompt}">
<ui:valueCommit>
<![CDATA[
if (!_settingComboSelection && !viewChanging && layoutMode == LAYOUT_COMBO && UIUtils.hasFocus(choiceCombo))
if (!_settingComboSelection && !viewChanging && layoutMode == LAYOUT_COMBO && UIUtils.hasFocus(choiceCombo) && choiceCombo.selectedItem)
{
_settingComboSelection = true;
chosenItem = choiceCombo.selectedItem;
if (alwaysShowPrompt)
choiceCombo.selectedIndex = -1;
_settingComboSelection = false;
}
]]>
Expand Down

0 comments on commit f9c8f08

Please sign in to comment.