SAP/ui5-webcomponents-react

Input: Autocompletion from browser does not change value of onInput or onChange

Closed this issue · 1 comments

Describe the bug

When the value is selected from browser suggestions/autocompletion then the e.target.value in the onInput or onChange is empty and error is visible in console.

Isolated Example

https://stackblitz.com/edit/github-kx12cr?file=src%2FApp.tsx

Reproduction steps

  1. Click on Input
  2. Select value from browser's suggestion/autocomplete popover

Expected Behaviour

When the suggestion is clicked, then both onInput and onChange should be fired with the selected value

Screenshots or Videos

Screenshot 2024-05-16 at 15 14 06 Screenshot 2024-05-16 at 15 14 12 Screenshot 2024-05-16 at 15 14 22

UI5 Web Components for React Version

1.28.1

UI5 Web Components Version

1.24.3

Browser

Chrome

Operating System

Mac

Additional Context

No response

Relevant log output

Uncaught TypeError: Cannot read properties of undefined (reading 'inputType')
    at Input2._handleInput (@ui5_webcomponents-react.js?v=4ac18bb1:46013:47)
    at EventPart.handleEvent (@ui5_webcomponents-react.js?v=4ac18bb1:24721:29)



Input.ts:1023 Uncaught TypeError: Cannot read properties of undefined (reading 'inputType')
    at Input2._handleInput (Input.ts:1023:38)
    at EventPart.handleEvent (lit-html.ts:2018:29)

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Hi @jakub-tkacz-emundo

I will close this issue as there is already another one covering this topic. If you have any questions or more information, please address them in the original issue.

Duplicate of SAP/ui5-webcomponents#8706