We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c8a297 commit c411715Copy full SHA for c411715
src/fn/fn.js
@@ -5,6 +5,15 @@ import Tagify from '@yaireo/tagify';
5
* @param {HTMLInputElement} inputTag
6
*/
7
export function initTagify(inputTag) {
8
+ // taglist come from assets/js/taglist.js
9
+ // if not successfully loaded: use empty array instead
10
+ if (typeof taglist === 'undefined' || taglist === null) {
11
+ var tags = [];
12
+ console.log('use empty taglist');
13
+ } else {
14
+ var tags = taglist;
15
+ }
16
+
17
let tagify = new Tagify(inputTag, {
18
originalInputValueFormat: valuesArr =>
19
valuesArr.map(item => item.value).join(', '),
0 commit comments