Comments (3)
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.
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.
Thank you for the pr. Your changes have been published.
from filedrop-svelte.
Related Issues (17)
- options.multiple appears to incorrectly set fileLimit to 1 HOT 3
- How to use windowDrop with Component? HOT 1
- Add filedragover event to FileDrop Action Example HOT 1
- Export types HOT 3
- FR: Clipboard Support HOT 1
- Error while dragging a file HOT 3
- REPL error! HOT 1
- Uploading same file via click fails
- Where do the files go
- Typescript Declaration needs updating for Svelte 4 HOT 6
- Vite plugin gives WARNING HOT 1
- Error: Cannot find module 'typescript' HOT 13
- Native support for directory uploads using the system dialog HOT 7
- filedragenter/filedragleave are both emitted whilst in the drop zone HOT 2
- Incorrect error code thrown with FileSizeLimitExceededError HOT 1
- No way to disable the keydown-listener (space / enter key) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filedrop-svelte.