Skip to content

feat(BaseTable): drag without drag handle - #167

Merged
kseniya57 merged 1 commit into
mainfrom
drag-without-handle
Jul 30, 2026
Merged

feat(BaseTable): drag without drag handle#167
kseniya57 merged 1 commit into
mainfrom
drag-without-handle

Conversation

@kseniya57

Copy link
Copy Markdown
Contributor

Summary

Adds an optional dragWithoutHandle mode to ReorderingProvider, allowing users to reorder rows by dragging anywhere on the row without adding a drag handle column.

Changes

  • Added the dragWithoutHandle prop, disabled by default.
  • Attached drag listeners to the entire row when enabled.
  • Added an 8px activation distance to prevent accidental dragging during regular clicks.
  • Preserved custom onPointerDown handlers and support for preventDefault().
  • Preserved <tr> semantics without adding drag-handle accessibility attributes.
  • Added grab and grabbing cursor styles.
  • Preserved compatibility with combined row and column reordering.
  • Added Storybook examples for Table and BaseTable.

@kseniya57 kseniya57 self-assigned this Jul 29, 2026
@kseniya57
kseniya57 requested a review from beliarh as a code owner July 29, 2026 12:55
@gravity-ui-bot

Copy link
Copy Markdown
Contributor

Preview is ready.

@kseniya57
kseniya57 merged commit 3d49236 into main Jul 30, 2026
5 checks passed
@kseniya57
kseniya57 deleted the drag-without-handle branch July 30, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants