Skip to content

Commit

Permalink
Fix #1678 autocomplete option is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jtommy committed Aug 22, 2019
1 parent da907ab commit a9c62f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export default {
* If object, get value from path, or else just the value.
*/
getValue(option) {
if (!option) return
if (option === null) return
if (typeof this.customFormatter !== 'undefined') {
return this.customFormatter(option)
Expand Down

0 comments on commit a9c62f1

Please sign in to comment.