Reset file input on publishing when accessing since it can be restored to previous value. #6855

Merged
Ruk33 merged 1 commit from 6679-reset-file-input-on-publishing into master 2021-08-19 18:50:59 +02:00
Ruk33 commented 2021-08-11 02:22:49 +02:00 (Migrated from github.com)

Fixes

Issue Number: https://github.com/lbryio/lbry-desktop/issues/6679

What is the current behavior?

1 - Enter publish
2 - Select a file
3 - Complete all fields to publish a file
4 - Reload
5 - Go back to publish

The publish form can be submitted even though the file couldn't be restored.

What is the new behavior?

The file input gets always reset since it can't be restored.

Other information

PR Type & Checklist

PR Type...

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:
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 added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below
## Fixes Issue Number: https://github.com/lbryio/lbry-desktop/issues/6679 <!-- Tip: - Add keywords to directly close the Issue when the PR is merged. - Skip the keyword if the Issue contains multiple items. - https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> ## What is the current behavior? 1 - Enter publish 2 - Select a file 3 - Complete all fields to publish a file 4 - Reload 5 - Go back to publish The publish form can be submitted even though the file couldn't be restored. ## What is the new behavior? The file input gets always reset since it can't be restored. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. --> ## PR Type & Checklist <details><summary>PR Type...</summary> What kind of change does this PR introduce? - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: </details> <!----------------------------------------------------------------------------> <details><summary>PR Checklist...</summary> <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below </details>
jessopb (Migrated from github.com) reviewed 2021-08-11 02:22:49 +02:00
tzarebczan commented 2021-08-17 18:35:22 +02:00 (Migrated from github.com)

Thanks @Ruk33 , we'll get a review on this soon.

Thanks @Ruk33 , we'll get a review on this soon.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#6855
No description provided.