Beta of segments
UI is not React-based Segments functionality extended to allow hierarchical rules, negation and more comparisons (regexp). Added enumerations (see #217)
This commit is contained in:
parent
f3ff89c536
commit
42338b0afa
3 changed files with 29 additions and 27 deletions
|
@ -951,6 +951,8 @@ function withForm(target) {
|
|||
|
||||
const formState = previousState.formState.withMutations(mutState => {
|
||||
mutState.update('data', stateData => stateData.withMutations(mutStateData => {
|
||||
mutStateData.setIn([key, 'value'], value);
|
||||
|
||||
if (typeof onChangeBeforeValidationCallback === 'object') {
|
||||
if (onChangeBeforeValidationCallback[key]) {
|
||||
onChangeBeforeValidationCallback[key](mutStateData, key, oldValue, value);
|
||||
|
@ -958,8 +960,6 @@ function withForm(target) {
|
|||
} else {
|
||||
onChangeBeforeValidationCallback(mutStateData, key, oldValue, value);
|
||||
}
|
||||
|
||||
mutStateData.setIn([key, 'value'], value);
|
||||
}));
|
||||
|
||||
validateFormState(this, mutState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue