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

Added Modal Closing Control Options #101

Merged
merged 4 commits into from
Mar 21, 2025
Merged

Conversation

derkan
Copy link
Contributor

@derkan derkan commented Mar 17, 2025

Added Modal Closing Control Options

Introduced two new options to manage modal closing behavior:

  • DisableClickAway: Prevents modal from closing when clicking outside
  • DisableESC: Prevents modal from closing when pressing ESC key

These options are particularly useful for modals containing forms, helping users avoid accidental closures and potential data loss while filling out forms.

@pulsone21
Copy link
Contributor

Kinda neat quality of life improvement. 👍

@axzilla axzilla changed the base branch from main to dev March 21, 2025 02:02
@axzilla
Copy link
Owner

axzilla commented Mar 21, 2025

Thanks man, these are cool features on the modal component!

@axzilla axzilla merged commit e83bd86 into axzilla:dev Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants