Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add must-interact functionality to modals to prevent closing #4719

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

Open
wants to merge 1 commit into
base: 7.dev
Choose a base branch
from

Conversation

swierczek
Copy link
Contributor

@swierczek swierczek commented Feb 20, 2025

This adds some restrictions to the way modals can be closed in order to require some interaction.

This can be useful for instances where you need the user to make a decision about something before proceeding - something different than the "confirm or cancel the action" behavior that a modal has by default. The example that we built this for was to allow the user to select one of two URL Title values before proceeding to edit the entry.

This additional logic ensures that the user makes a choice instead of just dismisses the action.

image

User Guide Pull Request: ExpressionEngine/ExpressionEngine-User-Guide#944

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.

2 participants