diff --git a/packages/vuetify/src/components/VInput/VInput.ts b/packages/vuetify/src/components/VInput/VInput.ts index c356536b6d7..60a8a9e77fc 100644 --- a/packages/vuetify/src/components/VInput/VInput.ts +++ b/packages/vuetify/src/components/VInput/VInput.ts @@ -239,7 +239,7 @@ export default baseMixins.extend().extend({ }, this.$slots.label || this.label) }, genMessages () { - if (this.hideDetails === true) return null + if (!this.showDetails) return null return this.$createElement(VMessages, { props: { diff --git a/packages/vuetify/src/components/VInput/__tests__/VInput.spec.ts b/packages/vuetify/src/components/VInput/__tests__/VInput.spec.ts index 1bd20873aff..9f5120adb03 100644 --- a/packages/vuetify/src/components/VInput/__tests__/VInput.spec.ts +++ b/packages/vuetify/src/components/VInput/__tests__/VInput.spec.ts @@ -196,10 +196,10 @@ describe('VInput.ts', () => { }, }) - expect(wrapper.html()).toMatchSnapshot() + expect(wrapper.vm.genMessages()).toBeNull() wrapper.setProps({ error: true }) - expect(wrapper.vm.genMessages()).not.toBeNull() + expect(wrapper.vm.genMessages()).toBeNull() wrapper.setProps({ errorMessages: 'required' }) expect(wrapper.vm.genMessages()).not.toBeNull() diff --git a/packages/vuetify/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap b/packages/vuetify/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap index 4f6298cb396..5dd89370540 100644 --- a/packages/vuetify/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap +++ b/packages/vuetify/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap @@ -172,22 +172,6 @@ exports[`VInput.ts should generate append and prepend slots 2`] = ` `; -exports[`VInput.ts should hide messages if no messages and hide-details is auto 1`] = ` -
-
-
-
-
- - -
-
-
-`; - exports[`VInput.ts should not apply attrs to element 1`] = `
diff --git a/packages/vuetify/src/components/VTextField/VTextField.ts b/packages/vuetify/src/components/VTextField/VTextField.ts index 2b2942d7cae..375a68781c8 100644 --- a/packages/vuetify/src/components/VTextField/VTextField.ts +++ b/packages/vuetify/src/components/VTextField/VTextField.ts @@ -407,7 +407,7 @@ export default baseMixins.extend().extend({ }) }, genMessages () { - if (this.hideDetails === true) return null + if (!this.showDetails) return null const messagesNode = VInput.options.methods.genMessages.call(this) const counterNode = this.genCounter() diff --git a/packages/vuetify/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap b/packages/vuetify/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap index 7b7b0854841..923fa7cfe37 100644 --- a/packages/vuetify/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap +++ b/packages/vuetify/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap @@ -108,15 +108,6 @@ exports[`VTextField.ts should hide messages if no messages and hide-details is a >
-
-
- - -
-
`;