Column resize does not end if mouseup is missed (screenshot, switching tabs)

Ouverte
#6,652 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@lx3133584 y travaille déjà.

Depuis le 6/11/2026.

  • #6653 par @lx3133584 — ouverte

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
react, typescript
Domaine
frontend

Piste de recherche

Start by reading the column resizing implementation and its tests; the issue does not name specific files, so locate them by searching for the resize handlers. Reproduce the missed-mouseup scenario in the linked React example, then check whether the resize interaction ends after focus changes. Done means resizing stops when the mouse is released after switching tabs or windows; pull request #6653 is already open for this issue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

TanStack Table version

9.3.1

Framework/Library version

19.3.0

Describe the bug and the steps to reproduce it

When I am dragging the column resize handle and perform an action that takes focus away without triggering a mouseup event, the table still acts as though the drag is occurring even though the mouse isn't clicked. This can be triggered by taking a screenshot or using Ctrl+Shift+Tab or Alt+Tab to move to a different window.

In the video below, I click on the column resize handle and start dragging it. I then use Ctrl+Shift+Tab to switch to a different tab. During the switch, the mouse is still pressed and so mouseup never fires. I then release the mouse and switch back to the TanStack Table app tab. Now, the mouse is still released but the drag is still in progress and the resize handle follows the mouse pointer until I click again.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://tanstack.com/table/latest/docs/framework/react/examples/column-resizing?panel=codesandbox

Screenshots or Videos (Optional)

https://github.com/user-attachments/assets/37b84aee-6b35-47b4-8aa8-32fe41b94851

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Langage dominant
TypeScript
Étoiles
28.5k
Forks
3.6k
Merge moyen
18 h 5 min
PR mergées (30 j)
12

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TanStack/table

Toutes les issues de TanStack/table

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.