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

Fix modals not properly closing when replaced within a <turbo-frame> #203

Closed
wants to merge 1 commit into from

Conversation

seanabrahams
Copy link

@seanabrahams seanabrahams commented Sep 29, 2023

When an active modal is displayed within a <turbo-frame> and that frame is updated with new content the disconnect() function for the modal controller is called but the async openValueChanged function is not, leaving the page locked as the body CSS classes are not updated.

Looks like Stimulus Change Callbacks aren't executed if the value is changed during disconnect().

Updating things to work without Change Callbacks resolves the issue.

@excid3 excid3 closed this in 9aa07f2 Mar 14, 2024
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.

1 participant