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
calling withValue(null) on a Select should clear it
Expected behavior
I should be able to call setValue() or withValue() and pass in no selection which clears any selection
Proposed change:
/**
* Sets the value for the select. Optionally, it can notify listeners based on the provided silent
* flag.
*
* @param value The new value to set.
* @param silent If true, change listeners will not be notified.
* @return an instance of the concrete class.
*/
@Override
public C withValue(V value, boolean silent) {
if (value == null)
return clear(silent);
V oldValue = getValue();
if (!Objects.equals(value, oldValue)) {
doSetValue(value);
if (!silent) {
triggerChangeListeners(oldValue, getValue());
}
}
autoValidate();
return (C) this;
}
The text was updated successfully, but these errors were encountered:
Describe the bug
calling withValue(null) on a Select should clear it
Expected behavior
I should be able to call setValue() or withValue() and pass in no selection which clears any selection
Proposed change:
The text was updated successfully, but these errors were encountered: