Skip to content

Commit

Permalink
#1429 - pasting doesn't work in select mode and does not fire a "past…
Browse files Browse the repository at this point in the history
…e" event
  • Loading branch information
yairEO committed Jan 10, 2025
1 parent 73df18a commit 29f0120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,10 +793,9 @@ export default {
e.preventDefault()

var tagsElems,
_s = this.settings,
selectModeWithoutInput =_s.mode == 'select' && _s.enforceWhitelist;
_s = this.settings;

if( selectModeWithoutInput || !_s.userInput ){
if( !_s.userInput ){
return false;
}

Expand All @@ -815,6 +814,7 @@ export default {

if( result ){
this.injectAtCaret(result, window.getSelection().getRangeAt(0))
return

if( this.settings.mode == 'mix' ){
this.events.callbacks.onMixTagsInput.call(this, e);
Expand Down

0 comments on commit 29f0120

Please sign in to comment.