Skip to content

Controlled ComboBox's onSelectionChange is fired when blurring the input #7698

Closed
@estenp

Description

@estenp

Provide a general summary of the issue here

Blurring the ComboBox input calls the onSelectionChange handler.

🤔 Expected Behavior?

onSelectionChange should only run when the selectedItem prop changes.

😯 Current Behavior

onSelectionChange runs on input blur (in addition to onBlur)

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://stackblitz.com/edit/vitejs-vite-w6je8woh?file=src%2FApp.tsx

Version

1.6.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

Mac OS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions