ionic-team / ionic-team/ionic-framework
bug: input elements do not participate in HTMLFormElement.reset()
- 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ả
**Ionic version:**
No framework. Vanilla JS
Calling Ionic CDN directly
**I'm submitting a ...**
[x ] bug report
[ ] feature request
**Current behavior:**
After resetting a form - form.reset() - a value set programmatically does not show in the ion-input. If any text is entered in the ion-input and then a value is set programmatically, the value does show
**Expected behavior:**
Setting a value should always show the value in the input field
**Steps to reproduce:**
This fiddle shows the bug. Follow the instructions in the fiddle
https://jsfiddle.net/dexster/vk0d73oz/23/
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the linked JSFiddle and reproduce the behavior using a vanilla JS Ionic CDN form and ion-input. Trace how form.reset() affects the component and programmatic values; done means the value consistently appears in the input after resetting, including the reproduction steps.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, typescript
- Lĩnh vực
- frontend, web-dev
- 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
- 25/100