Commit d4a0b944282f2f21b040808de64804dbd2d25bdd

Authored by herton7362
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 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;
... ...