Commit bd426f361a9accf0d1c60a126e10201e6581b3cb
Committed by
GitHub
Merge pull request #2992 from herton7362/2.0
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; |