diff --git a/angucomplete-alt.js b/angucomplete-alt.js index f9fdf83d..c68b4584 100644 --- a/angucomplete-alt.js +++ b/angucomplete-alt.js @@ -81,6 +81,13 @@ var displaySearching; var displayNoResults; + if (elem.attr('disabled')) { + $timeout(function() { + inputField.attr('disabled', 'disabled'); + scope.disableInput = true; + }, 0); + } + elem.on('mousedown', function(event) { if (event.target.id) { mousedownOn = event.target.id; diff --git a/example/index.html b/example/index.html index c8e2c997..dc56622d 100644 --- a/example/index.html +++ b/example/index.html @@ -453,7 +453,7 @@

Example 12 - Track Input Focus -

Example 13 - Disable/Enable Inputdisable

+

Example 13 - Disable/Enable Inputdisable

 <div angucomplete-alt