An AngularJS select replacement which build select like dropdown component with collection and ng-model support
179
stars
82
forks
source link
FIX: Need to double click on get focus in order to open the select list #169
Open
Asscobara opened 7 years ago
app.directive ( 'nyaFix', [ '$timeout', function ($timeout) { return function (scope, element, attrs) { var timeFromLostFocus = new Date(); $( "#" + element[0].id ).focusin ( function() { $timeout ( function() { var currectTime = new Date();
if( currectTime.getTime() - timeFromLostFocus.getTime() > 150) $( "#" + element[0].id ).addClass('open'); }, 100 );