Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Blocking background content and focus on modal

Paul TP free asked 4 years ago


Blocking background content and focus on modal. I am using mdbreact pro. I have a table that has a delete and edit buttons in each row and I do not want the user to click these buttons when the modal is shown up.


Krzysztof Wilk staff answered 4 years ago


Hi!

You can use disableBackdrop prop.

<Modal disableBackdrop="true" ... />

More you can read here: https://mdbootstrap.com/docs/react/modals/basic/#docsTabsAPI


Paul TP free commented 4 years ago

 <MDBModal isOpen={editModalState} toggle={updateUser(editData)} size={'lg'} backdrop={false} disableBackdrop={true}>

This is not working for me. Am I doing something wrong


Paul TP free commented 4 years ago

Never mind I figured out, removing backdrop or setting it to true solved my problem, disableBackdrop works well when the backdrop is set to true.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.26.0
  • Device: Laptop
  • Browser: chrome
  • OS: fedora 31
  • Provided sample code: No
  • Provided link: No