ionic-team / ionic-team/ionic-framework

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

Open
#22,832 2 comments 1 reaction 0 assignees View on GitHub
package: core type: bug
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.