Skip to content

Commit

Permalink
fix(VTextField): use intersect to recalculate elements width
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler committed Nov 21, 2019
1 parent 362ec1e commit 33b2f67
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/vuetify/src/components/VTextField/VTextField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import VLabel from '../VLabel'

// Mixins
import Loadable from '../../mixins/loadable'
import Intersectable from '../../mixins/intersectable'

// Directives
import ripple from '../../directives/ripple'
Expand All @@ -24,7 +25,16 @@ import { VNode } from 'vue/types'

const baseMixins = mixins(
VInput,
Loadable
Loadable,
Intersectable(
{
onVisible: [
'setLabelWidth',
'setPrefixWidth',
'setPrependWidth',
],
}
),
)
interface options extends InstanceType<typeof baseMixins> {
$refs: {
Expand Down

0 comments on commit 33b2f67

Please sign in to comment.