Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSelect(ev: MatAutocompleteSelectedEvent) {
const path = composeWithUi(this.uischema as ControlElement, this.path);
this.shouldFilter = false;
this.ngRedux.dispatch(Actions.update(path, () => ev.option.value));
this.triggerValidation();
}
return () => {
if (isNotTuple(schema)) {
dispatch(
Actions.update(
path,
data => {
const clone = data.slice();
clone.push({});
return clone;
}
)
);
}
};
}
set data(data: Object) {
this._store.dispatch(Actions.update('', () => data));
}
return () => {
if (isNotTuple(schema)) {
dispatch(
Actions.update(path, data => {
const clonedData = data.slice();
clonedData.push({});
return clonedData;
})
);
}
};
}
updateRootData(data: Object) {
dispatch(Actions.update('', () => data));
}
});
onClick={() => {
dispatch(Actions.update('toggleTopLayout', bool => !bool));
}}
>
onClick={() => {
dispatch(Actions.update('toggleBottomLayout', bool => !bool));
}}
>