Skip to content

Commit

Permalink
fix(v-autocomplete): search input event now kebab cased
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Kichler committed Sep 6, 2018
1 parent 6c41900 commit 9bb4981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/VAutocomplete/VAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
set (val) {
this.lazySearch = val

this.$emit('update:searchInput', val)
this.$emit('update:search-input', val)
}
},
isAnyValueAllowed () {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/components/VAutocomplete/VAutocomplete.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('VAutocomplete.js', ({ mount, shallow, compileToFunctions }) => {
const input = wrapper.first('input')

const update = jest.fn()
wrapper.vm.$on('update:searchInput', update)
wrapper.vm.$on('update:search-input', update)

input.element.value = 'test'
input.trigger('input')
Expand Down

0 comments on commit 9bb4981

Please sign in to comment.