Skip to content

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
@netlify
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
@pkg-pr-new
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.

2 participants