Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
nikolay-8 opened this issue Aug 14, 2024 · 0 comments
Open
1 task done

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

nikolay-8 opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working compatibility Issues related to conflicts or problems with other independent projects or tools.

Comments

@nikolay-8
Copy link

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

  • I’m not disclosing any internal or sensitive information.
@nikolay-8 nikolay-8 added the bug Something isn't working label Aug 14, 2024
@Lukas742 Lukas742 added the compatibility Issues related to conflicts or problems with other independent projects or tools. label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility Issues related to conflicts or problems with other independent projects or tools.
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants