fix: custom js, reminder on reset button etc

This commit is contained in:
David Ralph
2021-06-13 13:47:18 +01:00
parent 1f6dc34ee6
commit 335a6864b1
11 changed files with 50 additions and 38 deletions

View File

@@ -37,13 +37,12 @@ export default class Text extends React.PureComponent {
}
resetItem = () => {
localStorage.setItem(this.props.name, this.props.default || '');
this.setState({
value: this.props.default || ''
this.handleChange({
target: {
value: this.props.default || ''
}
});
toast(window.language.toasts.reset);
EventBus.dispatch('refresh', this.props.category);
}
render() {