Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Change Inertia Modal.vue component to use a native <dialog> #1431

Merged
merged 6 commits into from
Feb 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changed overflow to happen earlier, to more closely match existing be…
…havior and seem more responsive
  • Loading branch information
Smef committed Jan 15, 2024
commit 4a1692ee94f081536a26ddd9e5a7a3f068bf23e7
2 changes: 1 addition & 1 deletion stubs/inertia/resources/js/Components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ watch(() => props.show, () => {
document.body.style.overflow = 'hidden';
dialog.value?.showModal();
} else {
document.body.style.overflow = null;
setTimeout(() => {
dialog.value?.close();
document.body.style.overflow = null;
}, 200);
}
});
Expand Down