MDBSelect is there a way to...


Topic: MDBSelect is there a way to...

ialive asked 6 years ago

Is there an (easy) way to make the MDBSelect component follow the default behaviour of the standard html select? I'm trying to make it so an option cannot be dis-selected if it's the only one that is checked.

In regards,David.


Sebastian Kaczmarek staff pro premium answered 6 years ago

I assume you are asking about Multiselect. The answer is unfortunately no. The default behavior allows a user to uncheck all options and there is no official way to change that behavior. If you want to change that, you need to write custom code.


ialive answered 6 years ago

The "Technology" reverted back to jQuery after I editted the question. Originally, I meant this question to be relevant to React. Does the answer remain the same?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.9.0
  • Device: DELL
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags