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
I'm testing the new ChosenListBox release 3.0. When I add new items dinamically or when I set some items as selected, I get the exception this.selectedItem is undefined.
I debugged the Java source and I saw the GQuery selectedItem private attribute of ChosenImpl class is never initialized when the ChosenListBox is multivalue.This is, the method initSearchElement, where the attribute selectedItem is initialized, is never called in this case.
The problem is that the method update() of ChosenListBox class fires events, and the handler vents references to selectedItem. See method update() of DesktopMultipleChosenImpl class and finally method resultsResetCleanup of ChosenImpl class. This last method references to selectedItem and crash.
I think the method initSearchElement of DesktopMultipleChosenImpl class should initialize selectedItem attribute.
The text was updated successfully, but these errors were encountered:
I'm testing the new ChosenListBox release 3.0. When I add new items dinamically or when I set some items as selected, I get the exception this.selectedItem is undefined.
Test code:
I debugged the Java source and I saw the GQuery selectedItem private attribute of ChosenImpl class is never initialized when the ChosenListBox is multivalue.This is, the method initSearchElement, where the attribute selectedItem is initialized, is never called in this case.
The problem is that the method update() of ChosenListBox class fires events, and the handler vents references to selectedItem. See method update() of DesktopMultipleChosenImpl class and finally method resultsResetCleanup of ChosenImpl class. This last method references to selectedItem and crash.
I think the method initSearchElement of DesktopMultipleChosenImpl class should initialize selectedItem attribute.
The text was updated successfully, but these errors were encountered: