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
Describe the bug
Select with dui_clearable
AbstractSelect.java line 209 (ClickListener for the delete button) calls clearValue(false)
Select.java line 89 clearValue() calls super.clearValue() before setting selectedOption to null
AbstractSelect.java line 295 (inside clearValue()) calls triggerChangeListeners(oldValue, getValue())
which results in the change listener being called with oldValue == newValue instead of oldValue being the old selection and newValue being null since the selection is being cleared
To Reproduce
create a clearable select, select a value, click on clear icon
Expected behavior
newValue should be null when clearing
The text was updated successfully, but these errors were encountered:
Describe the bug
Select with dui_clearable
AbstractSelect.java line 209 (ClickListener for the delete button) calls clearValue(false)
Select.java line 89 clearValue() calls super.clearValue() before setting selectedOption to null
AbstractSelect.java line 295 (inside clearValue()) calls triggerChangeListeners(oldValue, getValue())
which results in the change listener being called with oldValue == newValue instead of oldValue being the old selection and newValue being null since the selection is being cleared
To Reproduce
create a clearable select, select a value, click on clear icon
Expected behavior
newValue should be null when clearing
The text was updated successfully, but these errors were encountered: