Skip to content

[number field] scrolling ScrubArea with mouse closes Dialog on mouse release in Firefox #3306

@mnpqraven

Description

@mnpqraven

Bug report

Current behavior

If the NumberInput component is in a Dialog, changing the value by scrolling with ScrubArea will also closes the dialog when i stop holding the mouse, rendering the component momentarily unusable

Expected behavior

releasing mouse (and potentially thumb on mobile devices) should not propagate events to dialogs

Reproducible example

https://stackblitz.com/edit/awgfv3sl?file=src%2FApp.tsx

Base UI version

v1.0.0-beta.6

Which browser are you using?

Firefox

Which OS are you using?

Linux

Which assistive tech are you using (if applicable)?

None

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser: FirefoxAffects or fixes behavior in Mozilla Firefox.component: number fieldChanges related to the number field component.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions