Skip to content

Commit

Permalink
Fix for tags autocomplete in m2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed May 10, 2022
1 parent b1a81ca commit 5aad73c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions view/adminhtml/templates/post/tag/autocomplete.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@
return false;
}
});

try {
$('#' + $tags.attr('id') + '_tag').data( "ui-autocomplete" )._renderItem = function( ul, item ) {
return $( "<li></li>" ).data("item.autocomplete", item)
.append( "<a>" + item.label + "</a>")
.appendTo( ul );
};
} catch (e) {
console.log('Autocomplete error: ' + e);
}
});
}, 1000);
})
Expand Down

0 comments on commit 5aad73c

Please sign in to comment.