Giter Club home page Giter Club logo

Comments (3)

chanced avatar chanced commented on June 27, 2024

Ah, the idea was that the default styles would only be applied if class were not provided. However, the assignment of the class isn't there and I need to add a slot.

I didn't realize that svelte doesn't recognize classes assigned to components. I'll switch it over to a slot. The default styles on the component were just meant to be a standin.

In the meantime, use the action.

<div use:filedrop={options} on:filedrop={(e) => {files = e.detail.files}}></div>

from filedrop-svelte.

chanced avatar chanced commented on June 27, 2024

Switching it to a label is causing an issue with the action, which erroneously assumes the container is a div or some other element that doesn't propagate click to the input.

from filedrop-svelte.

chanced avatar chanced commented on June 27, 2024

Thank you for the pr. Your changes have been published.

from filedrop-svelte.

Related Issues (17)

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.