Skip to content

Commit

Permalink
Correct misspelling of "preferred" in component & mixin (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezracelli authored and shentao committed Jan 10, 2019
1 parent e43f153 commit c4924e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export default {
) {
return false
} else {
return this.prefferedOpenDirection === 'above'
return this.preferredOpenDirection === 'above'
}
},
showSearchInput () {
Expand Down
6 changes: 3 additions & 3 deletions src/multiselectMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default {
return {
search: '',
isOpen: false,
prefferedOpenDirection: 'below',
preferredOpenDirection: 'below',
optimizedHeight: this.maxHeight
}
},
Expand Down Expand Up @@ -699,10 +699,10 @@ export default {
const hasEnoughSpaceBelow = spaceBelow > this.maxHeight

if (hasEnoughSpaceBelow || spaceBelow > spaceAbove || this.openDirection === 'below' || this.openDirection === 'bottom') {
this.prefferedOpenDirection = 'below'
this.preferredOpenDirection = 'below'
this.optimizedHeight = Math.min(spaceBelow - 40, this.maxHeight)
} else {
this.prefferedOpenDirection = 'above'
this.preferredOpenDirection = 'above'
this.optimizedHeight = Math.min(spaceAbove - 40, this.maxHeight)
}
}
Expand Down

0 comments on commit c4924e2

Please sign in to comment.