Topic: How to disable MDBSelect in MBDReact

Microtis free asked 1 year ago


Hello,

In REACT, I tried to disable a MDBSelect component by adding to MDBSelect disabled={this.props.isReadonly} where isReadonly is True or False. Unfortunately it does not work.

Can anybody help on this ?

Thanks in advance.

Best regards,

Frédéric


Mateusz Lazaru staff answered 1 year ago


Unfortunately, there is no such option in MDB4. You can try adding a custom class to the .select-wrapper and try to disable it using extra CSS styles, such as pointer-events: none;.



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

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB4 4.1.0
  • Device: Laptop
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No