ng-repeat fired on mouse enter event
Every time when I hover over some item in the dropdown, it always fires the ng-repeat filter ($digest). This is lagging my application because I'm working with a large dataset in the ng-repeat.
http://stackoverflow.com/questions/27234374/ng-repeat-continuously-fired-on-hover/27276849
http://i.imgur.com/cStlXzy.gif
http://plnkr.co/edit/OxiutZ8t4IX1bOxiOTgo?p=preview
+10
I'm not sure if activeIndex is required in some other functionnality. This might break some other code let me know if this fix?
to fix that i comment the line .attr('ng-mouseenter', '$select.setActiveItem('+$select.parserResult.itemName +')')
and changed css to .ui-select-bootstrap .ui-select-choices-row.active>a { color: inherit; text-decoration: none; outline: 0; background-color: transparent; } .ui-select-bootstrap .ui-select-choices-row>a:hover, .ui-select-bootstrap .ui-select-choices-row>a:focus { text-decoration: none; color: #fff; background-color: #428BCA; }
Since it's pure css no digest is called and no more filter called.
@pitieu Thanks, could you make a PR so it can be merged in?
I tested 0.12.0 and this still is a problem. Shame, because this library would be a replacement of chosen.
Should be solved with https://github.com/angular-ui/ui-select/pull/1211