wobsoriano / vue-wrap-balancer

Simple Vue Component That Makes Titles More Readable.
https://vue-wrap-balancer.vercel.app
MIT License
111 stars 1 forks source link

Fix component rendering #6

Closed lukaszflorczak closed 1 year ago

lukaszflorczak commented 1 year ago

While using it, i noticed that the component loses data-v so it cannot be used in conjunction with scoped styles. I noticed that the problem is returned array (() => [...]). Instead, I return () => withDirectives(...) directly, and moved script inside the component.

In my opinion, this has an additional advantage, because it does not generate elements outside the component in the DOM, which can also have negative and unexpected effects.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
vue-wrap-balancer ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 15, 2023 at 1:18PM (UTC)
wobsoriano commented 1 year ago

Thank you!