ionic-team / ionic-team/ionic-framework

bug: [angular ios] IonInput value disappears after viewing PDF on safari

Đang mở
#30,017 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
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ả

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

The value entered in an IonInput field disappears after the user returns from viewing a PDF document. This occurs when navigating away from the page containing the IonInput to view the PDF, and then navigating back to the original page.

### Expected Behavior

The expected behavior is for the IonInput to retain its value

### Steps to Reproduce

1. `yarn` or `npm i` for install dependencies
2. `yarn start` or `npm run start` to serve app on `0.0.0.0:4200`
3. open `{host}:4200` with safari on iphone (tested on iphone 13 and iphone 8)
4. click on "open pdf" link (safari will open pdf file in the same tab)
5. return back

### Code Reproduction URL

https://github.com/ZeroDX255/ion-input-bug-showcase

### Ionic Info

Ionic:

Ionic CLI : 7.2.0 (C:\Users\igor-\AppData\Local\Yarn\Data\global\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 8.4.0
@angular-devkit/build-angular : 18.2.11
@angular-devkit/schematics : 17.3.11
@angular/cli : 18.2.11
@ionic/angular-toolkit : 11.0.1

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/android : not installed
@capacitor/core : 6.1.2
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v20.17.0 (C:\Program Files\nodejs\node.exe)
npm : 10.8.2
OS : Windows 10

### Additional Information

_No response_

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

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

Hướng nghiên cứu

Start by running the linked ion-input-bug-showcase reproduction on Safari on an iPhone, following the listed navigation steps. Trace the IonInput behavior when returning from the PDF, and consider the issue done when the entered value is retained after returning to the original page.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, ios, typescript
Lĩnh vực
frontend, mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.