Currently, I have implemented a popup in angularjs along with a form. To enhance user experience, I have integrated an auto-completer feature using the following directive:
portfolio.directive('auto', function($timeout) { var names = ["john", "bill", "charlie", "robert", "alban", "oscar", "marie", "celine", "brad", "drew", "rebecca", "michel", "francis", "jean", "paul", "pierre", "nicolas", "alfred", "gerard", "louis", "albert", "edouard", "benoit", "guillaume", "nicolas", "joseph"]; return { restrict : 'A', require : 'ngModel', link : function(scope, iElement, iAttrs) { iElement.autocomplete({ source: names, onSelect: function() { $timeout(function() { iElement.trigger('input'); }, 0); } }); } }; });
The functionality is working as expected, however, there is an issue where the autocomplete box appears behind the popup. Does anyone have any suggestions on how to resolve this?