diff --git a/dev/components/form/all.vue b/dev/components/form/all.vue
index d98109cee647..663925cd63cd 100644
--- a/dev/components/form/all.vue
+++ b/dev/components/form/all.vue
@@ -268,6 +268,8 @@
Date selected: {{ JSON.stringify(date) }}
+
+
{ date = val; onChange(val) }" @input="onInput" @clear="onClear" :value="date" float-label="Date (onChange)" />
{ date = val; onChange(val) }" @input="onInput" @clear="onClear" :value="date" :default-value="defaultDate" :float-label="`Datetime (default ${defaultDate}, onChange)`" />
diff --git a/src/components/datetime/QDatetime.js b/src/components/datetime/QDatetime.js
index dbeeee42916c..f766e70f7cda 100644
--- a/src/components/datetime/QDatetime.js
+++ b/src/components/datetime/QDatetime.js
@@ -120,9 +120,6 @@ export default {
if (this.defaultView && target.view !== this.defaultView) {
target.setView(this.defaultView)
}
- else {
- target.setView()
- }
}
this.model = clone(this.computedValue)
this.focused = true