ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

when clearing the selected value or removing the model, activeIndex still exists.

Open alonn24 opened this issue 11 years ago • 4 comments

review here: http://plnkr.co/edit/zmN4f1ALeMwtpZ4jTECz?p=preview

when opening the dropdown for the first time, $select.activeIndex gets a value, and when removing the model or clearing the value (allow-clear="true"), the following code does not execute: https://github.com/angular-ui/ui-select/blob/master/src/uiSelectController.js#L59 because ctrl.selected is falsy - there is a highlighted element in the middle of the list instead of the first item in the list. screen shot 2015-10-11 at 11 32 21 am

alonn24 avatar Oct 11 '15 08:10 alonn24

I am having the same issue. This is causing an issue while testing using Selenium as the testing script assumes the first element would be selected when opened. I am using 0.13.2

kunal999 avatar Feb 19 '16 17:02 kunal999

If i'm correct you have 2 problems. One is the activeindex (as issue is created for) is not cleared when pressing the clear button. And the second problem is that you would expect that a error would be trowed as described on line59? (uiSelectMinErr)

Jefiozie avatar Jun 28 '16 11:06 Jefiozie

@alonn24 Did you already had a fix for this?

Jefiozie avatar Jul 14 '16 17:07 Jefiozie

@Jefiozie I do not have a fix for that, it is a minor one anyway.

alonn24 avatar Aug 15 '16 07:08 alonn24