You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With ChosenListBox 3.1-SNAPSHOT in mobile mode (can replicate under latest desktop Chrome browser emulating iPhone 5 with DevTools), but have also seen the issue on an actual iPhone device (iphone 5s running iOS 9.2.1). I only get the ChosenChangeEvent when selecting a new option, but not when deselecting an existing selection. This works using large tablet or desktop mode (when the non-mobile UI is displayed).
Not only ChosenListBox is not reporting a deselection event, but if I call chosenListBox.getValues() after deselecting a selected value (when one was selected), it returns the value that I just deselected, so it never really removes it from its internal list, although the UI doesn't show that option as being selected anymore.
Additionally, if I select multiple options and I deselect them all before closing the dropdown, when I call chosenListBox.getValues(), I get all the options that were ever selected (but are not selected now).
I see no workaround for this issue right now (please let me know if you know of one). It's impossible for me to actually get the real list of selections when the user deselects any options in the process of selection.
The text was updated successfully, but these errors were encountered:
Found workaround for this issue by calling update() every time a user has made selections.
chosenListBox.addHidingDropDownHandler(newHidingDropDownHandler()
{
@OverridepublicvoidonHidingDropdown()
{
Timertimer = newTimer()
{
@Overridepublicvoidrun()
{
chosenListBox.update();
}
};
// have to schedule update in the future to avoid infinite update loop while popup is opentimer.schedule(400);
}
});
chosenListBox.addUpdatedHandler(newUpdatedEvent.UpdatedHandler()
{
@OverridepublicvoidonUpdated()
{
// Have to use scheduler if you want the values as soon as possible after// an update because the UI/DOM can take its time to update the selections made by the userScheduler.get().scheduleDeferred(newScheduler.ScheduledCommand()
{
@Overridepublicvoidexecute()
{
chosenListBox.getValues();
// Do something with the values above ...
}
});
}
});
With ChosenListBox 3.1-SNAPSHOT in mobile mode (can replicate under latest desktop Chrome browser emulating iPhone 5 with DevTools), but have also seen the issue on an actual iPhone device (iphone 5s running iOS 9.2.1). I only get the ChosenChangeEvent when selecting a new option, but not when deselecting an existing selection. This works using large tablet or desktop mode (when the non-mobile UI is displayed).
Not only ChosenListBox is not reporting a deselection event, but if I call chosenListBox.getValues() after deselecting a selected value (when one was selected), it returns the value that I just deselected, so it never really removes it from its internal list, although the UI doesn't show that option as being selected anymore.
Additionally, if I select multiple options and I deselect them all before closing the dropdown, when I call chosenListBox.getValues(), I get all the options that were ever selected (but are not selected now).
I see no workaround for this issue right now (please let me know if you know of one). It's impossible for me to actually get the real list of selections when the user deselects any options in the process of selection.
The text was updated successfully, but these errors were encountered: