Merge pull request #2992 from herton7362/2.0

Fix #982 issue.Make Null acceptable for Select tag(让Select标签可以接收null值)
This commit is contained in:
Aresn 2018-02-06 10:59:51 +08:00 committed by GitHub
commit bd426f361a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -724,7 +724,8 @@
watch: { watch: {
value (val) { value (val) {
this.model = val; this.model = val;
if (val === '') this.query = ''; // #982
if (val === '' || val === null) this.query = '';
}, },
label (val) { label (val) {
this.currentLabel = val; this.currentLabel = val;