One of the features in my application is a Font Awesome icon picker that allows employees to easily access different icons without having to search for their codes online.
However, I am facing an issue where clicking on an icon does not update the ng-model. To trigger the update, I have to enter another character or space for AngularJS to recognize the changes made in the input field.
You can see the problem in action in this gif: .
The code snippet I am using for the icon picker is:
editCellTemplate: function (container, options) {
container.html('<input class="icon-picker-input edit icp icp-auto" type="text" ng-model="iconInput" /><script>$(".icp-auto").iconpicker();</script>');
options.setValue($scope.iconInput);
$compile(container)($scope);
}
I am utilizing a gridview from DevExtreme with a custom editCellTemplate.
If anyone has any insights on how to resolve this issue, your help would be greatly appreciated. Thank you in advance!