-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(input-file-upload): add droppable and indicator support #574
Conversation
✅ Deploy Preview for sefirot-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@brc-dd |
✅ Deploy Preview for sefirot-story ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@brc-dd // These works.
function addItem() {
data.value.files.push({
file: new File([''], `000iii111jjjjjjj.txt`, { type: 'text/plain' }),
indicatorState: 'completed',
canRemove: true
})
}
function update(){
data.value.files[1].indicatorState = null
} |
Screen.Recording.2025-01-27.at.2.01.59.PM.mov |
Ahhhh |
Yeah this must be Histoire issue... When ever updating props, the file object becomes empty object for some reason 🤔 No idea why it happens. // before
[File [object, object]]
// when any props gets updated
[{}] |
yeah |
Add droppable file selection and individual item state support to
<SinputFileUpload>
.In order to keep the backward compatibility, the model value accepts both
File[]
and the newFileObject[]
, and must define:model-type="object"
when usingFileObject[]
as model value.