ionic-team / ionic-team/ionic-framework

bug: ios, scrolling input with long text does not work the first time

Abierto
#20,279 4 comentarios 0 reacciones 0 asignados Ver en GitHub
bug: external type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

# Bug Report

**Ionic version:**
[x] **4.11.3**

**Current behavior:**
When a text within an input field is longer than its renderable width, scrolling using the keyboard will not work in iOS (13).
When I lose focus and re-enter the field again with the caret on position 0, I am able to scroll from left to right, but not back.

**Expected behavior:**
I should be able not only to set the caret to a position on the rendered text, but I should also be able to use the caret to scroll through the whole line.

**Steps to reproduce:**
- Download and install the Ionic Tabs Starter (Angular)
- Enable Cordova Integration
- To be sure, upgrade cordova-ionic-webview and cordova-ionic-keyboard to the latest version.
- On any page, add an `` like below
- Build, enter a long text and try to reposition the caret to the front (index 0)

**Related code:**

```xml

Fixed Label

```

**Other information:**
![ionic-input-type-scroll](https://user-images.githubusercontent.com/819238/73032774-46826080-3e40-11ea-9fde-c8942cb3dffa.gif)

**Ionic info:**
```
Ionic:

Ionic CLI : 5.4.15 (/Users/Wilk/.nvm/versions/node/v10.16.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.9
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.2

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 4 other plugins)

Utility:

cordova-res : 0.8.1
native-run : 0.3.0

System:

ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v10.16.3 (/Users/Wilk/.nvm/versions/node/v10.16.3/bin/node)
npm : 6.9.0
OS : macOS Catalina
Xcode : Xcode 11.3.1 Build version 11C504
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.