Commit bd426f361a9accf0d1c60a126e10201e6581b3cb

Authored by Aresn
Committed by GitHub
2 parents 92ba610c d4a0b944

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 724 watch: {
725 725 value (val) {
726 726 this.model = val;
727   - if (val === '') this.query = '';
  727 + // #982
  728 + if (val === '' || val === null) this.query = '';
728 729 },
729 730 label (val) {
730 731 this.currentLabel = val;
... ...