ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[FileUploader]: [Withoutbutton show Issue Cannot read properties of undefined (reading 'matches')]

Open pupss89345 opened this issue 1 year ago • 2 comments

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. 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.

pupss89345 avatar Jan 06 '25 02:01 pupss89345

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

MarcusNotheis avatar Jan 06 '25 13:01 MarcusNotheis

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

nnaydenow avatar Jan 07 '25 10:01 nnaydenow