Great component! I noticed the function combo.setEnabled(false) doesn't dis

Great component!
I noticed the function combo.setEnabled(false) doesn’t disable the combo. You cna still select items from the list.

Hi Leandro,

Thank you for the feedback. This is most likely a bug and I will look into it and fix the behavior.

In the meantime, as a temporary workaround, you could use setReadonly (it is semantically different, but it should not allow you to select any values).

BR,

Goran

Thanks. Yes, I was doing that before your suggestion. It indeed prevents the user to interact with the component but aesthetically doesn’t look the same as other disabled components. Hopefully this is an easy fix and can be released on the next version.

Hi Leandro,

I have introduced the disabled state for the multiselect-combo-box web component (see demo: https://multiselect-combo-box.firebaseapp.com/demo/) and also updated the Java wrapper and API’s with a setEnabled() method that is available with the latest version.

Please try it out and let me know what you think.

BR,

Goran

Hi Goran,

This is working as expected now. Thank you very much. This is off topic, but how difficult is for you to add a feature like an embedded button to select all items? Right now, if the user wants to select all items, it has to be done one by one… However by pressing the X button, all the selections can be cleared with one click, which is awesome.

Hi Leandro,

Thank you for the feedback!

At this time I do not have plans to introduce a “select all” button.

A possible workaround would be to just create a composition that adds an additional button outside of the component which provides this type of functionality.

Hope this helps,

Goran

Thank you Goran. I’ve been using that workaround for a while, waiting for this functionality to be added to this component and to replace a similar one when I used Vaadin 8.

Thanks again.