Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 8b78a23

Browse files
committed
Revert "update default value handling"
This reverts commit 0f8af90.
1 parent 541b9f5 commit 8b78a23

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/field.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,7 @@ export default {
3333
value: {
3434

3535
get() {
36-
37-
const value = get(this.values, this.name);
38-
39-
if (isUndefined(value) && !isUndefined(this.default)) {
40-
return this.value = this.default;
41-
}
42-
43-
return value;
36+
return get(this.values, this.name);
4437
},
4538

4639
set(value) {
@@ -64,6 +57,14 @@ export default {
6457

6558
},
6659

60+
created() {
61+
62+
if (isUndefined(this.value) && !isUndefined(this.default)) {
63+
this.value = this.default;
64+
}
65+
66+
},
67+
6768
methods: {
6869

6970
filterOptions(options) {

0 commit comments

Comments
 (0)