Issue metadata
Sign in to add a comment
|
'change' event is not dispatched if the same path is selected again
Reported by
thereald...@gmail.com,
Jan 5
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36 Steps to reproduce the problem: 1. Visit https://narcolepticinsomniac.github.io/base64-encoder/ 2. Convert a local image 3. Dismiss converted image, removing it from local storage 4. Convert that same image again What is the expected behavior? Image should convert and save to local storage. What went wrong? ?? Did this work before? No Does this work in other browsers? Yes Chrome version: 70.0.3538.110 Channel: n/a OS Version: 6.3 Flash Version: Screen record: https://streamable.com/1h4zb The first few times in the demo I alternate images. When I select the same image I just converted and then removed from local storage, it fails with no error. This only occurs if you convert, remove from storage and then attempt to convert the same image again, in consecutive order. Any other conversion between or a page reload, and it works as expected. Tested Firefox with no issue. Not positive it's strictly a storage bug, but it's definitely a bug.
,
Jan 5
,
Jan 5
Nope, not that either. Apparently onchange doesn't register if you load the same file consecutively. Would've suspected it was my own garbage code and investigated further if it didn't work in Firefox. Not sure which behavior is technically correct, but resetting the value in the function works. Move it accordingly if this is an actual bug, or feel free to close it. I'm curious to hear the verdict.
,
Jan 5
,
Jan 5
,
Jan 5
I'm gonna fix the repo used as an example in the OP, but I made a test file which alerts when onchange registers. Loading the same file consecutively registers in Firefox, but fails in Chromium. I get that the name is a duplicate value, so IDK which browser handles it correctly. Sorry the the OP was so wildly inaccurate. I'd edit it if I could.
,
Jan 5
,
Jan 7
Essentially, this is same as Issue 856911. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by thereald...@gmail.com
, Jan 5