diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index b8a332357d..dd7f306888 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -307,7 +307,12 @@ export class Input implements ComponentInterface { } } - private clearTextInput = () => { + private clearTextInput = (ev?: Event) => { + if (this.clearInput && !this.readonly && !this.disabled && ev) { + ev.preventDefault(); + ev.stopPropagation(); + } + this.value = ''; }