-
Notifications
You must be signed in to change notification settings - Fork 64
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: prevent overwriting htmlAttributes.ref #496
Conversation
@jaredloson Feel free to take a look and leave feedback as well. |
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.
This is a good start, but I think it's best to add another test to ensure htmlAttributes and onMounted play nicely together.
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.
Thanks for making those changes @sherwinski! I'd be happy to merge it in this state, but I think there's just a few little things we could improve if we want.
Fixes #494
Refactoring work completed in #475 inadvertently introduced a regression where we are overwriting a
ref
passed viahtmlAttributes
. This PR better handles this situation while accounting for refs that are either passed as a callback or an object.