Skip to content

Commit f2a7b84

Browse files
fix typo in initTagify() JS func
typo occured during previous fix in c411715
1 parent 925db01 commit f2a7b84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/fn/fn.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export function initTagify(inputTag) {
99
// if not successfully loaded: use empty array instead
1010
if (typeof taglist === 'undefined' || taglist === null) {
1111
var tags = [];
12-
console.log('use empty taglist');
12+
console.log(
13+
'use empty taglist as taglist.js has not been generated yet'
14+
);
1315
} else {
1416
var tags = taglist;
1517
}
@@ -19,7 +21,7 @@ export function initTagify(inputTag) {
1921
valuesArr.map(item => item.value).join(', '),
2022
pattern: /^[a-z0-9_-]{1,64}$/,
2123
editTags: false,
22-
whitelist: taglist,
24+
whitelist: tags,
2325
dropdown: {
2426
enabled: 0,
2527
maxItems: 30,

0 commit comments

Comments
 (0)