Skip to content

Commit 3a195a6

Browse files
committed
Use lodash's merge instead of Object.assign
1 parent ba8f904 commit 3a195a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vfjs-component/computed.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { merge } from 'lodash';
2+
13
// Elements which supports the 'value' attribute
24
const valueElements = ['input', 'option', 'textarea'];
35

@@ -54,7 +56,7 @@ const computed = {
5456
};
5557
},
5658
vfjsComputedMergedFieldOptions() {
57-
return Object.assign(
59+
return merge(
5860
{},
5961
this.vfjsDefaultOptions,
6062
this.vfjsComputedFieldErrorOptions,

0 commit comments

Comments
 (0)