src/mixins/multipleSelection.js
/**
     * Handles cutting action from the input
     * @param {ClipboardEvent} event
     */
Handles cutting action from the input
@param {ClipboardEvent} event
Handles cutting action from the input @param { ClipboardEvent } event
handleCut(event) {
      event.preventDefault();
      const { input, tags } = this.handleCopy(event);
      if (!input && !tags.length) return;
      const remainingTags = this.selectedTags.filter(tag => !tags.includes(tag));
      const remainingInput = this.input.replace(input, '');
      this.setSelectedTags(remainingTags);
      this.setFilterInput(remainingInput);
    }
handleCut ( event ) { event . preventDefault ( ) ; const { input , tags } = this . handleCopy ( event ) ; if ( ! input && ! tags . length ) return ; const remainingTags = this . selectedTags . filter ( tag => ! tags . includes ( tag ) ) ; const remainingInput = this . input . replace ( input , '' ) ; this . setSelectedTags ( remainingTags ) ; this . setFilterInput ( remainingInput ) ; }
Handles cutting action from the input
 @param {ClipboardEvent} event
Handles cutting action from the input @param { ClipboardEvent } event
// dont overwrite the content, if nothing is copied // remove what is copied from the selection and input // set the leftover content