bug: ion-textarea scrolls to top on mobile when tapping padding area in long text
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
É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
- typescript
- Domaine
- frontend, mobile-dev
Piste de recherche
Commencez par localiser l’implémentation du composant ion-textarea ainsi que la gestion du focus et du défilement sur mobile ; l’issue ne mentionne aucun fichier source ni aucun test. Reproduisez le problème avec auto-grow et environ 1 500 caractères, puis vérifiez qu’appuyer sur le padding horizontal près des dernières lignes maintient le curseur et la vue en place.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
There is a strange behavior with on mobile devices. When the textarea contains a long amount of text (e.g., 1,500+ characters), and the user scrolls to the bottom of the text and places the cursor near the last lines, tapping on the padding area (outside the actual text but inside the textarea) causes the view to scroll the textarea to the top instead of keeping the focus at the cursor's position.
This issue does not happen when tapping directly on the text. It only occurs when tapping the empty padding area inside the textarea.
Expected Behavior
The view should scroll to keep the cursor in view, especially if the user taps near the last lines of a long text.
Steps to Reproduce
-
On a mobile device, open an with auto-grow="true" and a long text value (~1,500 characters).
-
Scroll to the bottom of the textarea and put the cursor in one os the last lines.
-
Tap on an empty area (x padding) beside the text (but still within the textarea).
-
The view jumps to the top of the textarea, even though the cursor remains near the bottom.
Code Reproduction URL
Please request an admin access to my website if it cannot be reproduced.
Ionic Info
Ionic:
Ionic CLI : 6.19.0 (C:\Users\User\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/vue 8.6.5
Capacitor:
Capacitor CLI : 7.4.2
@capacitor/android : 7.2.0
@capacitor/core : 7.4.2
@capacitor/ios : 7.4.2
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v20.19.0 (C:\Program Files\nodejs\node.exe)
npm : 10.8.2
OS : Windows 10
Additional Information
No response
- Langage dominant
- TypeScript
- Étoiles
- 52.8k
- Forks
- 13.3k
- Merge moyen
- 3 j 1 h
- PR mergées (30 j)
- 86
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 ionic-team/ionic-framework
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous boxPeut-être pris @sarankumar1325 l’a pris il y a 23 jours. Ouvertepackage: core type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
ionic-team/ionic-framework#31639 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug: vue swipe cancellation throws when the previous page is missingPeut-être pris @dandoingdev l’a pris il y a 46 jours. Ouvertepackage: vue type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ionic-team/ionic-framework#31514 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwardedPeut-être pris @HappyKnuckles l’a pris il y a 41 jours. Ouvertea11y package: core type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
ionic-team/ionic-framework#31492 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug: IonTabs throws when a Fragment contains one IonRouterOutletPeut-être pris @Benziza l’a pris il y a 82 jours. Ouvertepackage: react type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ionic-team/ionic-framework#31410 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
bug: angular swipe-back gesture crashes in StackController.startBackTransition when the stack is popped before the gesture is capturedPeut-être pris @officialasishkumar l’a pris il y a 9 jours. Ouvertepackage: angular type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
ionic-team/ionic-framework#31291 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de ionic-team/ionic-framework
Issues similaires
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
lingdojo/kana-dojo#34223 · 1 commentaire · 5 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
bug status: needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
mastra-ai/mastra#30587 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area:web p2 product:business triage:active type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
cuadrao-ai/argus#2228 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
embedpdf/embed-pdf-viewer#1098 ·
Les mainteneurs répondent en général sous 1 jour
-
.Needs Triage .Team/Metabot Priority:P3 Type:Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
metabase/metabase#87252 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour