Giter Club home page Giter Club logo

Comments (10)

endigo9740 avatar endigo9740 commented on July 30, 2024 1

Thanks Neil, I'll take a look asap!

from skeleton.

neiled avatar neiled commented on July 30, 2024 1

Absolutely, good luck with it, looks great, I love sveltekit and tailwindcss so this project will be a godsend for internal tools etc. Thanks for all the work so far!

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024 1

FYI Neil, I've pushed a potential fix for this issue to my in-progress QA branch: d19ad67

I'm going to let Thomas, our resident QA expert, give this a once over before I consider this complete. If I was a betting man I'd expect this to see this in a release later this week though. Thanks for your patience in the meantime!

from skeleton.

thomasbjespersen avatar thomasbjespersen commented on July 30, 2024 1

@endigo9740 - Looking into this now.

from skeleton.

thomasbjespersen avatar thomasbjespersen commented on July 30, 2024 1

Confirmed this will be fixed by the merge of d19ad67...

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024 1

Sorry for the double post, but updating to 0.30.5 or later this issue should now be resolved for you:
https://github.com/Brain-Bones/skeleton/releases/tag/0.30.4
https://github.com/Brain-Bones/skeleton/releases/tag/0.30.5

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

I've been able to replicate the issue on my end. Seems it's a side effect of our use of Svelte's $$restProps. This is a catch-all for miscellaneous properties so we don't have to specify every possible anchor or button attribute (ex: target, type, etc).

We experienced a similar issue that would occur on initialization of the component, but patched this in the last release. Unfortunately this fix doesn't extend to when a component prop updates, resulting in the unstyled component you're seeing.

I'm aware of about 5 components this bug may be affecting. I think it may be advisable for us to drop $$restProps and find another means to handle miscellaneous attributes. That or take the whitelist approach and build up over time.

Working on a couple other things this week, but I'll try to swing back to this as soon as I can. Thanks!

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

Thanks for the kind words!

Making a note for myself for a potential fix:

  • If we add class as a prop for any component then it won't be included restProps, which should be our fix.
  • This will mean we have two types of props: always declared (props) and potentially declared (restProps)
  • This will supersede the need for the delete fix from last patch

from skeleton.

endigo9740 avatar endigo9740 commented on July 30, 2024

Merged: #50

from skeleton.

neiled avatar neiled commented on July 30, 2024

Thanks that's great will give it a whirl!

from skeleton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.