ionic-team / ionic-team/ionic-framework

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

Đang mở
#20,279 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug: external type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

# 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
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.