[FileUploader]: [Withoutbutton show Issue Cannot read properties of undefined (reading 'matches')]
Describe the bug
I discovered a strange phenomenon. When I use
<FileUploader valueState="None" accept=".txt,.csv"></FileUploader>
, and click upload an error occurs as shown in the image.
However, when I add a button like this:
<FileUploader valueState="None" accept=".txt,.csv"> <Button>Upload single file</Button> </FileUploader>
the error no longer occurs.
Isolated Example
No response
Reproduction steps
1.Write <FileUploader valueState="None" accept=".txt,.csv"></FileUploader>
2.Click upload input
3.show error
...
Expected Behaviour
Click upload input show normal
Screenshots or Videos
operation video https://github.com/user-attachments/assets/b374c242-939b-4c54-bf5f-d2ecdcead010
UI5 Web Components for React Version
2.5.0
UI5 Web Components Version
2.5.0
Browser
Edge
Operating System
Win11
Additional Context
Relevant log output
Organization
No response
Declaration
- [x] I’m not disclosing any internal or sensitive information.
Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.
Hi @pupss89345,
The issue was fixed with: https://github.com/SAP/ui5-webcomponents/pull/10408. You can test the solution in our release candidate: v2.6.0-rc.2