Skip to content

NumberField interaction with Popover closing #8836

@kveperedo

Description

@kveperedo

Provide a general summary of the issue here

When typing an input value in a controlled NumberField inside a Popover, the onChange function is not being triggered when clicking outside the Popover.

🤔 Expected Behavior?

NumberField should still trigger the onChange function when clicking outside Popover.

I've read in the documentation that the onChange of NumberField is only triggered on input blur when typing but I'd expect the input blur event to occur first before the onOpenChange event happens for Popover 🤔

😯 Current Behavior

On click outside, the onChange of NumberField is not triggered

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

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

Version

1.12.1

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 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