From c05caee03bbd1a16c7b7cd22f7eec191ebc637e2 Mon Sep 17 00:00:00 2001 From: nimesh-hathiwala Date: Mon, 12 Jan 2015 11:55:52 +0000 Subject: [PATCH] Fixed non-selection problem for slow mouse clicks. Modified to select drop-down list item on mouse down instead of on mouse click to prevent problems with non-selection during slow mouse clicks. --- .gitignore | 1 + angucomplete.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 300c65d..732d233 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules bower_components .*.swp .DS_Store +.idea diff --git a/angucomplete.js b/angucomplete.js index 7a42bf0..734e9a2 100644 --- a/angucomplete.js +++ b/angucomplete.js @@ -25,7 +25,7 @@ angular.module('angucomplete', [] ) "minLengthUser": "@minlength", "matchClass": "@matchclass" }, - template: '
Searching...
No results found
{{ result.title }}
{{result.description}}
', + template: '
Searching...
No results found
{{ result.title }}
{{result.description}}
', link: function($scope, elem, attrs) { $scope.lastSearchTerm = null;