From 5aad73cc0c74558dd4b059a2e83b767b87a5961c Mon Sep 17 00:00:00 2001 From: Ihor Vansach Date: Tue, 10 May 2022 15:16:19 +0300 Subject: [PATCH] Fix for tags autocomplete in m2.4.4 --- view/adminhtml/templates/post/tag/autocomplete.phtml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/view/adminhtml/templates/post/tag/autocomplete.phtml b/view/adminhtml/templates/post/tag/autocomplete.phtml index fe0090de..ef97bb27 100644 --- a/view/adminhtml/templates/post/tag/autocomplete.phtml +++ b/view/adminhtml/templates/post/tag/autocomplete.phtml @@ -94,6 +94,16 @@ return false; } }); + + try { + $('#' + $tags.attr('id') + '_tag').data( "ui-autocomplete" )._renderItem = function( ul, item ) { + return $( "
  • " ).data("item.autocomplete", item) + .append( "" + item.label + "") + .appendTo( ul ); + }; + } catch (e) { + console.log('Autocomplete error: ' + e); + } }); }, 1000); })