fabianlindfors / multi.js

A user-friendly replacement for select boxes with the multiple attribute enabled
https://fabianlindfors.se/multijs
MIT License
953 stars 76 forks source link

Disable or readonly #49

Closed andreescocard closed 3 years ago

andreescocard commented 3 years ago

How can i let the multi select disabled or in readonly mode? Tried some parameters but none worked. Thanks

andreescocard commented 3 years ago

Solved in a ugly way haha .multi-wrapper .item{ pointer-events:none; }

fabianlindfors commented 3 years ago

Hi, @andreescocard! Multi.js supports the standard HTML disabled attribute on option elements and I would recommend using that instead!

andreescocard commented 3 years ago

I did that, but won't work.

fabianlindfors commented 3 years ago

In that case, it's not possibly with the way the HTML standard is designed. required will only work for the traditional HTML form elements.