Commit d4a0b944282f2f21b040808de64804dbd2d25bdd
1 parent
92ba610c
Fix #982 issue.Make Null acceptable for Select tag(让Select标签可以接收null值)
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/components/select/select.vue
@@ -724,7 +724,8 @@ | @@ -724,7 +724,8 @@ | ||
724 | watch: { | 724 | watch: { |
725 | value (val) { | 725 | value (val) { |
726 | this.model = val; | 726 | this.model = val; |
727 | - if (val === '') this.query = ''; | 727 | + // #982 |
728 | + if (val === '' || val === null) this.query = ''; | ||
728 | }, | 729 | }, |
729 | label (val) { | 730 | label (val) { |
730 | this.currentLabel = val; | 731 | this.currentLabel = val; |