Skip to content

fix: table resizing click stuck#10040

Open
snowystinger wants to merge 4 commits into
mainfrom
fix-table-resizing-stuck
Open

fix: table resizing click stuck#10040
snowystinger wants to merge 4 commits into
mainfrom
fix-table-resizing-stuck

Conversation

@snowystinger
Copy link
Copy Markdown
Member

@snowystinger snowystinger commented May 11, 2026

Closes #10032

What happened was that the cursor overlay we use to style the cursor with the e-w arrows against the entire screen was receiving the pointer events after it appeared in press start. This caused us to be stuck in the resizer mode because onPress was never called.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Go to path=/story/react-aria-components-table--table-example-story or docs build from this PR react-aria.adobe.com/Table#column-resizing and click on a column resizer. It should not get stuck with the focus indication showing that we're actively in resize mode.

🧢 Your Project:

@snowystinger snowystinger added the small review Easy to review PR label May 11, 2026
@rspbot
Copy link
Copy Markdown

rspbot commented May 11, 2026

Comment on lines +297 to +301
},
onPressEnd: () => {
if (state.resizingColumn != null) {
endResize(item);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I noticed is that the resizing "divider" line now disappears as you drag the handle on mobile, doesn't seem to happen on main. Note that it doesn't cancel the resize event, it is only that the divider disappears

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm yeah, i am not 100% on this approach yet. But I hadn't found any bad behaviours yet, thanks for finding that. I'll revisit the approach again.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lemme know if you need help investigating, I tested on Android.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I'll let you know how i go tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Table] Column resizer bug on click instead of hold

3 participants