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

Cannot click on other upload options after one is selected #249

Open
donmorton opened this issue Jun 25, 2020 · 2 comments
Open

Cannot click on other upload options after one is selected #249

donmorton opened this issue Jun 25, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@donmorton
Copy link

Describe the bug
A clear and concise description of what the bug is. Include whether you're using Uppload version 1.x or 2.x.
Uppload version 3.2.1

Hey everyone, I'm running into an error when try to change the upload method. The problem is: once I choose one of the upload methods ie: Unsplash - I am then met with the search unsplash view which is expected. However, if I try to click any of the other options (Twitter, Direct URL, etc) that I have enabled - it will not work and does not change tabs.

If I refresh my page - I can use Uppload in the expected way (switching tabs) but only on my first load.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Uppload
  2. Click on any of the upload options
  3. Try clicking on another one of the upload options in the sidebar (it will not switch after the first load)

Expected behavior
A clear and concise description of what you expected to happen.
I expect to be able to switch between the different upload options at any step of the modal.

Screenshots
If applicable, add screenshots to help explain your problem.
Image -> I cannot click on Instagram, Direct URL, Twitter, Etc in this photo.

Desktop:

  • OS: MacOS Mojave 10.14
  • Browser: Chrome
  • Version: 83.0.4103.116

Additional context
Add any other context about the problem here.
I am using Uppload in react

@AnandChowdhary AnandChowdhary self-assigned this Jun 26, 2020
@AnandChowdhary AnandChowdhary added the bug Something isn't working label Jun 26, 2020
@chetna-webonise
Copy link

I am facing the same issue on Ubuntu OS,Browser Chrome Version 75.0.37

@nasal
Copy link

nasal commented Sep 7, 2020

Hi,

the problem is that when you close the uploader it stays in the DOM, and when you open it next time, a new one is added below the old one.

What I did to "solve" this is manually removing the modal on close.

uploader.on('close', () => {
  reject() // I reject my promise so I can enable buttons

  const upploadModal = document.querySelector('.uppload-container')
  if (!upploadModal) return

  upploadModal.remove()
})

Hope this helps.

phlegx added a commit to phlegx/uppload that referenced this issue Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants