I’ve created a Bootstrap 5 modal and am using nocloseonclick="true"
. However, hitting the esc
button closes this modal. I tried to prevent this action by using data-bs-keyboard="false"
but this was unsuccessful. Removing is="dmx-bs5-modal"
seems to resolve this, but then I lose other functionality.
Are data-bs-keyboard="false"
and is="dmx-bs5-modal"
incompatible? Is this a bug?