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

Drag and Drop the same image multiple times generates Vue Duplicate Key warning #25

Closed
zfi opened this issue Mar 12, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@zfi
Copy link
Contributor

zfi commented Mar 12, 2022

The duplicate key warning is triggered in the console when draging and dropping the same image file in two or more separate drag-drop operations.

The attached log file contains the full stack trace.

vue.runtime.esm.js:619 [Vue warn]: Duplicate keys detected: 'Screen Shot 2022-02-07 at 10.38.15 AM.png'. This may cause an update error.

found in

---> <TestUpload> at src/components/test/upload.vue
       <VCard>
         <Src/pages/index.vue> at src/pages/index.vue
           <Nuxt>
             <VMain>
               <VApp>
                 <NavBase> at src/components/nav/base.vue
                   <Default> at src/layouts/innertab.vue
                     <Root>

localhost-1647059099920.log

@zfi zfi added the bug Something isn't working label Mar 12, 2022
@shollingsworth
Copy link
Collaborator

HRM, should be easy enough to fix. I think the drop zone component has a duplicate file event we can use as well.

@shollingsworth
Copy link
Collaborator

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants