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(nuxt-picture): only pass defined props to <nuxt-img> component #620

Merged
merged 5 commits into from Nov 24, 2022

Conversation

nthduy
Copy link
Contributor

@nthduy nthduy commented Sep 21, 2022

@netlify
Copy link

netlify bot commented Sep 21, 2022

👷 Deploy request for nuxt-image-v1 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit edea75a

Copy link
Collaborator

@hartmut-co-uk hartmut-co-uk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!
One question comes to mind though - is it correct that baseImageProps does not have class prop?
And/or is it going to stay like this?
Maybe it would be safer to explicitly avoid class from being passed down?

@pi0 pi0 changed the title fix(image): Pass only defined props to img tag fix(nuxt-picture): only pass defined props to <nuxt-img> component Nov 24, 2022
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️

@pi0 pi0 merged commit 522ffa2 into nuxt:main Nov 24, 2022
@nthduy nthduy deleted the fix/608-picture-prop-override branch December 15, 2022 14:59
procrates pushed a commit to procrates/nuxt-image that referenced this pull request Feb 21, 2023
@pi0 pi0 mentioned this pull request Mar 31, 2023
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.

Nuxt Picture class prop override Nuxt Image
3 participants