Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onRemoveListItem = (ev: SyntheticEvent) => {
if (!(ev.currentTarget instanceof HTMLElement)) return;
const [id, idx] = ev.currentTarget.id.split('.');
const newList = timm.removeAt(this.state[id], Number(idx));
this.setState({ [id]: newList });
};
removeLang(idx: number) {
const nextLangs = timm.removeAt(this.state.langs, idx);
this.updateLangs(nextLangs);
}
handleWrapperTriggerRemove = index =>
this.setState({ values: removeAt(this.state.values, index) });
removeItem(itemIndex) {
const dbValue = this.getDBValue() || [];
const updatedValue = removeAt(dbValue, itemIndex);
this.handleTabActive(0);
setTimeout(() => {
this.handleValueChange(updatedValue, { arrayOperation: "remove" });
}, 0);
}
removeItem(itemIndex) {
const dbValue = this.getDBValue() || [];
const updatedValue = removeAt(dbValue, itemIndex);
this.handleAccordionActive(0);
setTimeout(() => {
this.handleValueChange(updatedValue, { arrayOperation: "remove" });
}, 0);
}
removeItem(itemIndex) {
const dbValue = this.getDBValue() || [];
const updatedValue = removeAt(dbValue, itemIndex);
this.handleValueChange(updatedValue, { arrayOperation: "remove" });
}
handleOptionsRemove = index => {
const options = removeAt(this.props.options, index);
this.props.onChange({ options });
};
handleKeyUp = e => {