How to use the timm.removeLast function in timm

To help you get started, we’ve selected a few timm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ThemeFuse / Brizy / public / editor-src / editor / js / component / Controls / ReactSelect / index.js View on Github external
handleInputKeyDown = e => {
    const { value, multiple, onChange } = this.props;

    // remove last item when trigger backspace
    if (multiple && e.keyCode === 8 && !this.state.inputValue) {
      onChange(removeLast(value));
    }
  };