Skip to content

Commit 5aad73c

Browse files
committed
Fix for tags autocomplete in m2.4.4
1 parent b1a81ca commit 5aad73c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

view/adminhtml/templates/post/tag/autocomplete.phtml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@
9494
return false;
9595
}
9696
});
97+
98+
try {
99+
$('#' + $tags.attr('id') + '_tag').data( "ui-autocomplete" )._renderItem = function( ul, item ) {
100+
return $( "<li></li>" ).data("item.autocomplete", item)
101+
.append( "<a>" + item.label + "</a>")
102+
.appendTo( ul );
103+
};
104+
} catch (e) {
105+
console.log('Autocomplete error: ' + e);
106+
}
97107
});
98108
}, 1000);
99109
})

0 commit comments

Comments
 (0)