-
Notifications
You must be signed in to change notification settings - Fork 32
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: scroll error into view with nested key names #904
Conversation
Hey @staffe ! Thanks for pointing out this issue and for the provided fix. We will have a look at it as soon as possible. Cheers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@staffe Could you please rebase onto |
Thanks, I've synced my fork |
Glad for the quick response. It seems like you have to run |
I see, sorry about that. It should be sorted now |
No need to be sorry. Thanks for your contribution. |
🎉 This PR is included in version 6.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hello! I ran into an error when using nested fields with the option
scrollErrorIntoView: true
The addon code evaluates to
document.querySelector('[name=fields.nestedfield]')
and throws the following exception:Uncaught DOMException: Failed to execute 'querySelector' on 'Document': 'name=fields.nestedfield' is not a valid selector.
The fix is to replace
.
with\\.
in the query selector, i.edocument.querySelector('[name=fields\\.nestedfield]')
Thank you!