I have an app that uses bsModal with two actionButton's for canceling and confirming. The actionButtons are observed and toggleModal takes care of the rest. The problem is that if a user double clicks, or clicks multiple times fast enough, we get "stuck" in the modal.
I have an app that uses
bsModal
with twoactionButton
's for canceling and confirming. TheactionButtons
are observed andtoggleModal
takes care of the rest. The problem is that if a user double clicks, or clicks multiple times fast enough, we get "stuck" in the modal.After some testing, it seems that we can resolve this by disabling the button on click:
src: https://stackoverflow.com/a/27471389/7362046