diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx
index 7cad1577e5..cd8dc8f8c6 100644
--- a/core/src/components/input/input.tsx
+++ b/core/src/components/input/input.tsx
@@ -314,6 +314,15 @@ export class Input implements ComponentInterface {
}
this.value = '';
+
+ /**
+ * This is needed for clearOnEdit
+ * Otherwise the value will not be cleared
+ * if user is inside the input
+ */
+ if (this.nativeInput) {
+ this.nativeInput.value = '';
+ }
}
private focusChanged() {
diff --git a/core/src/components/input/test/basic/index.html b/core/src/components/input/test/basic/index.html
index d9d57665ae..2b0a8b4dad 100644
--- a/core/src/components/input/test/basic/index.html
+++ b/core/src/components/input/test/basic/index.html
@@ -118,6 +118,11 @@
+
+ Clear On Edit
+
+
+
Left