Skip to content

[Table] Column resizer bug on click instead of hold #10032

@coolassassin

Description

@coolassassin

Provide a general summary of the issue here

Hello!

If you click on the resizer element instead of holding it and dragging.
We fall into the resizing mode, where nothing is resizing, and you can get out of this mode only by pressing "Escape"

It can be easily reproduced in official docs:
https://react-aria.adobe.com/Table#column-resizing
Just a simple click on the resize element in the header

🤔 Expected Behavior?

I click to resize the element, and nothing happens

😯 Current Behavior

I click, and I have broken resize mode

💁 Possible Solution

  1. In addition to listening to onPress for the element, listen to the mouse-up event on the body
  2. Enable resizing mode only after moving the mouse at least 1px

🔦 Context

No response

🖥️ Steps to Reproduce

https://react-aria.adobe.com/Table#column-resizing
Just a simple click on the resize element in the header

Version

v1.17.0

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions