Column resize does not end if mouseup is missed (screenshot, switching tabs)
Les mainteneurs répondent en général sous 1 jour
É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
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de TanStack/table
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
svelte-table: controlled expanded and pagination state resets straight after every changePeut-être pris @NickSpag l’a pris il y a 15 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
TanStack/table#6601 · 5 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Cast required to access custom options when defining a custom plugin/featurePeut-être pris @sorena-paydar l’a pris il y a 46 jours. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 1 jour
-
`aggregatedCell` not typed against bound `cellComponents` in `createAppColumnHelper`Peut-être pris @cpruijsen l’a pris il y a 56 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de TanStack/table
Issues similaires
-
Add: ESP 2 ROOuverteapproved check:passed streams:add
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
ipaas: Configure form shows "Deploy to apply." and "Overrides selected Link" when they don't applyOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
wso2/integration-control-plane#1118 ·
Les mainteneurs répondent en général sous 1 jour
-
File reporting form UI DesignOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
UTDNebula/utd-notebook#311 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
binding:python bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour