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

refactor(shapes): remove v-bind=$attrs on root element #526

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andretchen0
Copy link
Contributor

Problem

Many root elements in Cientos' shape components include v-bind="$attrs". This is unnecessary.

From Vue docs: When a component renders a single root element, fallthrough attributes will be automatically added to the root element's attributes.

https://vuejs.org/guide/components/attrs.html#attribute-inheritance

Solution

Remove v-bind="$attrs" from root elements.

From Vue docs: When a component renders a single root element, fallthrough attributes will be automatically added to the root element's attributes.

https://vuejs.org/guide/components/attrs.html#attribute-inheritance
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit 27351b9
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/674301732d272000083ec7ad
😎 Deploy Preview https://deploy-preview-526--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andretchen0 andretchen0 added the p1-chore Doesn't change end-user code behavior (priority) label Nov 23, 2024
Copy link

pkg-pr-new bot commented Nov 24, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@tresjs/cientos@526

commit: 27351b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1-chore Doesn't change end-user code behavior (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant