Skip to content

Conversation

@a21y
Copy link
Contributor

@a21y a21y commented Jul 18, 2025

Removes a Maximum call stack size exceeded error when opening the sheet.

Targeting the component directly seems to cause recursive updates to state. This adjustment targets the underlying HTML Element of the sheet ref component instead of the reactive ref.

Admittedly, I haven't tested this super well at all, so not sure if there are any unintentional side-effects. I'll let the author decide if this is a robust enough fix. I've just patched my local version in the meantime.

@megaarmos megaarmos changed the title Target <Motion> component's $el for focus fallback fix: Target <Motion> component's $el for focus fallback Jul 22, 2025
@megaarmos megaarmos merged commit e517f0e into megaarmos:master Jul 23, 2025
@a21y a21y mentioned this pull request Jul 24, 2025
@github-actions
Copy link

🎉 This PR is included in version 2.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants