tailwindcss-stimulus-components icon indicating copy to clipboard operation
tailwindcss-stimulus-components copied to clipboard

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

Open seanabrahams opened this issue 9 months ago • 0 comments

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.

seanabrahams avatar Sep 29 '23 23:09 seanabrahams