Skip to content

ComboBox: Selected item isn't validated correctly #6230

Open
@nikolay-8

Description

@nikolay-8

Describe the bug

The "react-hook-form" package validation doesn't work correctly when the user selects an item in a ComboBox component. However, it works correctly when selecting an item in a Select component or typing text in an Input component.

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 "Reproducing validation issue with ComboBox component of "UI5 Components for React" package" section of the Readme (or the repository's home page). They demonstrate the issue including expected/actual behavior.

Expected Behaviour

At the end of the test sequence described in 3) in "Reproduction steps": to have no validation errors.

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