Skip to content
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

Inputs added with file picker are lost when creating a new project #991

Open
pombredanne opened this issue Nov 1, 2023 · 0 comments · May be fixed by #1036
Open

Inputs added with file picker are lost when creating a new project #991

pombredanne opened this issue Nov 1, 2023 · 0 comments · May be fixed by #1036

Comments

@pombredanne
Copy link
Member

I create a project and I add a few inputs with a click to open a file picker.
Then again I click to open a file picker again and select more inputs.
The first inputs are lost and replaced by the second inputs.
NB: this does not happen with drag and drop.

jayanth-kumar-morem added a commit to jayanth-kumar-morem/scancode.io that referenced this issue Dec 20, 2023
- Enhance file input handling in the UI to avoid losing selected files when adding new inputs.
- Introduce a `selectedFiles` array to store and manage selected files.
- Display selected files in the UI with additional features, including a delete button.
- Update the `removeFile` function to correctly remove files from both the UI and the `selectedFiles` array.

Fixes: nexB#991
Signed-off-by: Jayanth Kumar <jknani111@gmail.com>
jayanth-kumar-morem added a commit to jayanth-kumar-morem/scancode.io that referenced this issue Jan 26, 2024
- Enhance file input handling in the UI to avoid losing selected files when adding new inputs.
- Introduce a `selectedFiles` array to store and manage selected files.
- Display selected files in the UI with additional features, including a delete button.
- Update the `removeFile` function to correctly remove files from both the UI and the `selectedFiles` array.

Fixes: nexB#991
Signed-off-by: Jayanth Kumar <jknani111@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant