fix: #10968, icon selector in ACP when icon name is typed in

This commit is contained in:
Julian Lam
2022-10-14 11:58:12 -04:00
parent dc4a850cac
commit af27606e20

View File

@@ -45,7 +45,7 @@ define('iconSelect', ['benchpress', 'bootbox'], function (Benchpress, bootbox) {
label: 'Select',
className: 'btn-primary',
callback: function () {
const iconClass = $('.bootbox .selected').attr('class');
const iconClass = $('.bootbox .selected').attr('class') || `fa fa-${$('.bootbox #fa-filter').val()}`;
const categoryIconClass = $('<div></div>').addClass(iconClass).removeClass('fa').removeClass('selected')
.attr('class');
const searchElVal = picker.find('input').val();