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

Clear the internal file selector after clearPublish #3500

Merged
merged 1 commit into from
Jan 16, 2020
Merged

Clear the internal file selector after clearPublish #3500

merged 1 commit into from
Jan 16, 2020

Conversation

Yamboy1
Copy link
Contributor

@Yamboy1 Yamboy1 commented Jan 15, 2020

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change

PR Type

What kind of change does this PR introduce?

  • Bugfix

Fixes

Issue Number: #3490

What is the current behavior?

If you select a file (on the publish screen), then clear the form and try to select it again, it won't select

What is the new behavior?

You are able to select it on the second try now.

Other information

I've checked that these changes don't break any other places that the FileSelector component is used.

@dalhill
Copy link
Contributor

dalhill commented Jan 16, 2020

@Yamboy1 nice fix. There is also a similar problem with choosing the thumbnail if you follow these steps.

  1. Select a thumbnail
  2. Select "cancel" when the modal pops up (image below)
  3. Select the same thumbnail from step 1

This leaves us in the state similar to the one you fixed for the file selection.

Modal from step 2
image

@Yamboy1
Copy link
Contributor Author

Yamboy1 commented Jan 16, 2020

I'll see if I can add that in. Thanks @dalhill

@Yamboy1
Copy link
Contributor Author

Yamboy1 commented Jan 16, 2020

In it's current state, I can't seem to find a way to do this that doesn't break the publish entirely, so I'm going to leave that out of this PR for now.

Feel free to make another issue from that tho

@neb-b
Copy link

neb-b commented Jan 16, 2020

Nice! 🙂

@neb-b neb-b merged commit 25897d9 into lbryio:master Jan 16, 2020
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 this pull request may close these issues.

None yet

3 participants