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

[Select]: Initially selected item isn't validated correctly

Open nikolay-8 opened this issue 1 year ago • 0 comments

Describe the bug

Item in a Select component that was selected automatically on page load isn't recognised as selected by the "react-hook-form" package validation. On subsequent select of another item by the user, the validation correctly recognises that an item is selected.

Isolated Example

No response

Reproduction steps

  1. Clone locally this repository containing demo of the issue
  2. Execute the steps in the "Getting Started" section of the Readme (or the repository's home page)
  3. Execute the steps in "Testing the validation issue with the "UI5 Components for React" dropdown" section of the Readme (or the repository's home page). They demonstrate the issue, specifically step 2)

Expected Behaviour

On step 2) of the "Testing the validation issue with the "UI5 Components for React" dropdown" section, we shouldn't see a validation error shown below the Select component.

Screenshots or Videos

No response

UI5 Web Components for React Version

1.29.2

UI5 Web Components Version

N/A

Browser

Chrome

Operating System

MacOS

Additional Context

No response

Relevant log output

No response

Organization

No response

Declaration

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

nikolay-8 avatar Aug 14 '24 11:08 nikolay-8