Skip to content

Commit

Permalink
style(VInput): move type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Dec 14, 2018
1 parent f42caad commit f95b2b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vuetify/src/components/VInput/VInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ export default mixins<options &
deprecate(`:${type}-icon-cb`, `@${eventName}`, this)
}

const data = {
const data: VNodeData = {
props: {
color: this.validationState,
dark: this.dark,
disabled: this.disabled,
light: this.light
},
on: !(this.$listeners[eventName] || cb)
? null
? undefined
: {
click: (e: Event) => {
e.preventDefault()
Expand All @@ -203,7 +203,7 @@ export default mixins<options &
e.stopPropagation()
}
}
} as VNodeData
}

return this.$createElement('div', {
staticClass: `v-input__icon v-input__icon--${kebabCase(type)}`,
Expand Down

0 comments on commit f95b2b1

Please sign in to comment.