ionic-team / ionic-team/ionic-framework

bug: input elements do not participate in HTMLFormElement.reset()

未关闭
#22,832 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

**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/

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, typescript
领域
frontend, web-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。