You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is here because document.activeElement does not work in Safari, it just returns the body.
It's not in the docs but there is a third parameter which is the original event, so you can grab all three parameters onShow: function(modal, trigger, event) then use event.target instead.
MicroModal.init({ onShow: this.handleOpenModal.bind(this), });
Arguments passed to this function suppose to be modal and target, target is passing the body instead on safari browser.
The text was updated successfully, but these errors were encountered: