Skip to content

Commit

Permalink
fix(core): fix form ref values (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Jul 7, 2020
1 parent 7bb119c commit 777596b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ export const createFormInternals = (options: IFormCreatorOptions = {}) => {
form.setState((state: IFormState) => {
state.initialized = true
if (isValid(options.initialValues)) {
state.initialValues = options.initialValues
state.initialValues = clone(options.initialValues)
}
if (isValid(options.values)) {
state.values = options.values
state.values = clone(options.values)
}
if (!isValid(state.values)) {
state.values = state.initialValues
Expand Down

0 comments on commit 777596b

Please sign in to comment.