-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ctrl.search not being cleared using angular 1.3 #434
Comments
The issue seems to be related to the $observe not being available in 1.3, so these lines are never called. I use this work-around for now: module.directive('uiSelect', function () {
return {
restrict: 'EA',
require: 'uiSelect',
link: function($scope, $element, $attributes, ctrl) {
ctrl.resetSearchInput = true;
}
};
}); |
Thanks for the work-around. Confirmed to work with angular 1.3.2 as well. |
Is this issue fixed already on the latest version #0.8.4? |
Seems both 0.8.4 and 0.9.0 are affected. |
Still an issue with the latest 0.9.1: http://plnkr.co/edit/ylNOJSC7ZsG01sUSqUMg |
On version 0.8.3 this attribute works just fine for me: |
Thanks @wzoom, adding the attribute works as well. I prefer this in comparison to my previous work around. |
Works on 0.9.4 as well; however, if close-on-select="false" is used regardless of reset-search-input true/false, the problems comes back. |
Should be fixed with #703 |
After entering text and choosing an option, the entered text is not being cleared from the input
Demo: http://plnkr.co/edit/6nrzYlaMEaDsLo5X3EMp
The text was updated successfully, but these errors were encountered: