You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using storybook and @storybook/addon-interactions, a userEvent.upload(<element>, file) causes the file upload dialog to appear even though the file was already uploaded by the interaction.
Additional context
Steps to see this issue:
Run storybook in the repro repo above.
Click on the "Test Input" story, wait two seconds, the open file dialog is opened, even though the file in the story was uploaded to the input successfully. This causes the rest of the interactions in the story to be hidden.
Note that this only happens when the user manually clicks on the story from a different story. If the component or story is changed and storybook refreshes that story, this behavior does not occur.
Assumed expected behavior:
File upload successfully sets the file on the input without opening the manual select dialog.
Side note:
I tried to publish the repo using the steps described in the how-to-reproduce, following it exactly, and ran into this error when running the npx chromatic command:
sh: 1: chroma: not found
and the apt version of chroma is a game that is unrelated to the command trying to be run.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using storybook and @storybook/addon-interactions, a
userEvent.upload(<element>, file)
causes the file upload dialog to appear even though the file was already uploaded by the interaction.To Reproduce
Reproduction repository: https://github.com/ice1080/storybook-upload-issue-repro
(see note below for why I was unable to publish the repo)
System
Additional context
Steps to see this issue:
Run storybook in the repro repo above.
Click on the "Test Input" story, wait two seconds, the open file dialog is opened, even though the file in the story was uploaded to the input successfully. This causes the rest of the interactions in the story to be hidden.
Note that this only happens when the user manually clicks on the story from a different story. If the component or story is changed and storybook refreshes that story, this behavior does not occur.
Assumed expected behavior:
File upload successfully sets the file on the input without opening the manual select dialog.
Side note:
I tried to publish the repo using the steps described in the how-to-reproduce, following it exactly, and ran into this error when running the npx chromatic command:
and the apt version of chroma is a game that is unrelated to the command trying to be run.
The text was updated successfully, but these errors were encountered: