Skip to content

Commit

Permalink
fixes #874 - mix-mode with simple whitelist & "dropdown.enabled = 0" …
Browse files Browse the repository at this point in the history
…setting could not select suggestions after only typing the pattern
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Aug 20, 2021
1 parent cd611a9 commit 2294d4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tagify.js
Expand Up @@ -1252,6 +1252,8 @@ Tagify.prototype = {
* @param {String/Array} tagData A string (single or multiple values with a delimiter), or an Array of Objects or just Array of Strings
*/
addMixTags( tagsData ){
tagsData = this.normalizeTags(tagsData);

if( tagsData[0].prefix || this.state.tag ){
return this.prefixedTextToTag(tagsData[0])
}
Expand Down Expand Up @@ -1295,7 +1297,7 @@ Tagify.prototype = {
prefixedTextToTag( tagItem ){
var _s = this.settings,
tagElm,
createdFromDelimiters = this.state.tag.delimiters
createdFromDelimiters = this.state.tag.delimiters;

_s.transformTag.call(this, tagItem)

Expand Down

0 comments on commit 2294d4b

Please sign in to comment.