Skip to content

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

Open
@nikolay-8

Description

@nikolay-8

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityIssues related to conflicts or problems with other independent projects or tools.

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions