[Combobox] Clear or Clear group missing #1268
-
Expected behaviorCombobox component should have clear or clear group. Actual BehaviorClear or clear group is not found for combobox component. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good point. We could add this to the ListboxMixin (that is the parent of the Combobox, SelectRich and Listbox). It should have a For now, the quickest way of achieving this would be to add this to ListboxMixin: clear() {
this.setCheckedIndex(-1);
} For LionCombobox: clear() {
super.clear();
this._inputNode.value = '';
} If you want, you could do a merge request for this. |
Beta Was this translation helpful? Give feedback.
Good point. We could add this to the ListboxMixin (that is the parent of the Combobox, SelectRich and Listbox).
It should have a
clear
method, since it is more like a Field than a FormGroup (think of native<select>
, the options are not individual submittable elements).We might want to let the Listbox fully depend on LionField in the future and then we would get this api for free.
For now, the quickest way of achieving this would be to add this to ListboxMixin:
For LionCombobox:
If you want, you could do a merge request for this.