Skip to content

Commit

Permalink
fixes #987 - edit tag bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Feb 16, 2022
1 parent 59bd357 commit 0f1ebbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parts/dropdown.js
Expand Up @@ -520,10 +520,10 @@ export default {
return
}

if( this.state.editing )
if( this.state.editing ) {
// normalizing value, because "tagData" might be a string, and therefore will not be able to extend the object
this.onEditTagDone(null, extend({__isValid: true}, this.normalizeTags(tagData)[0]))

this.onEditTagDone(null, extend({__isValid: true}, this.normalizeTags([tagData])[0]))
}
// Tagify instances should re-focus to the input element once an option was selected, to allow continuous typing
else{
addedTag = this[this.settings.mode == 'mix' ? "addMixTags" : "addTags"]([tagData], clearOnSelect)
Expand Down

0 comments on commit 0f1ebbc

Please sign in to comment.