Backdrop Modal static and keyboard false - Vue
I want the modal has the following options:
backdrop: 'static',
keyboard: false
How to manage this? I want a modal which is not able to close at at by clicking outside the modal, nor by keyboard.
Replies (1)
Hi,
You can set those properties with the following attributes.
data-bs-backdrop="static" data-bs-keyboard="false"
Refer to bootstrap 5 official documentation: https://getbootstrap.com/docs/5.1/components/modal/
Regards,
Lauris Stepanovs,
Keenthemes Support Team