nik-christou / lit-element-bootstrap

Bootstrap components implements as Web Components with LitElement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split dismiss by backdrop and button

tpluscode opened this issue · comments

Related to #11, I would propose to clean up and separate the dismiss functionality.

When not [dismissable], the modal should not be closable by the default X button, neither by clicking the backdrop.
I would add a new property, to prevent dismissing with backdrop but allow the modal to close by the default button. Maybe something like [backdrop-static] to mean that the backdrop is inert?