Skip to content

Commit f6d71f3

Browse files
committed
Bugfix escape requests
Fixes #214
1 parent 0aa9bfc commit f6d71f3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

public/modal.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/modal.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ window.LivewireUIModal = () => {
2626
this.closeModal(true);
2727
},
2828
closeModal(force = false, skipPreviousModals = 0, destroySkipped = false) {
29+
if(this.show === false) {
30+
return;
31+
}
2932

3033
if (this.getActiveComponentModalAttribute('dispatchCloseEvent') === true) {
3134
const componentName = this.$wire.get('components')[this.activeComponent].name;

0 commit comments

Comments
 (0)