NativeScript / NativeScript/angular

Reactive Forms/FormControl Have Incorrect Values When Using iOS QuickPath/Slide to Type

Đang mở
#76 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
55
Fork
13
Merge trung bình
16 phút
Pull request đã merge (30 ngày)
1

Mô tả

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.2.3
  • Cross-platform modules: 8.1.1
  • Android Runtime: 8.1.1
  • iOS Runtime: 8.2.1
  • Plugin(s): iqkeyboardmanager (2.0.0)
  • NativeScript-Angular: 12.2.0
  • Angular: 12.2.13

Describe the bug
When using swipe to type/QuickPath on an iOS keyboard in a reactive form, the word input with QuickPath temporarily replaces the value of the control with just that word instead of appending to the control's previous value. Another input into the keyboard subsequently returns the value back to the full expected value.

To Reproduce

  1. Have a TextField bound to a FormControl with the formControl attribute.
  2. Subscribe to the control's valueChanged event and output the value each time the value changes.
  3. Start inputting a word into the text field, then add a space, for example, "Test ".
  4. Now use QuickPath/slide to type to input another word, like "test" again.
  5. The last output you see will be "test" instead of "Test test".
  6. Input a space, the output will return to the full value of the control.

Expected behavior
When using slide to type/QuickPath, form controls should retain the full value of those controls and emit those values as usual to valueChanged.

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện vấn đề với một TextField trên iOS được liên kết với Angular FormControl và đăng ký sự kiện valueChanged của nó, làm theo các bước QuickPath được liệt kê. Theo dõi nơi giá trị TextField được truyền đến control biểu mẫu và xác minh rằng toàn bộ giá trị, chẳng hạn như “Test test,” được phát ra trong khi nhập bằng thao tác vuốt và sau dấu cách tiếp theo.

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
mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 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
48/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.