-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor(choices): avoid setting activeItem on mouseenter #1211
Conversation
@@ -17,6 +17,11 @@ | |||
top: 0px !important; | |||
} | |||
|
|||
|
|||
.ui-select-choices-row:hover{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code consistency: add space before {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtheoof done
adbb420
to
10ec09b
Compare
I might be wrong, but after a quick |
@jtheoof yes, its not needed anymore. I just removed it |
👍 Not sure what went wrong with the build. |
Y just rebuilt it and Travis is fine now |
Cool, I think it's good to go. Might help #88 but I do not think it's the main performance issue. |
refactor(choices): avoid setting activeItem on mouseenter
setActiveItem was removed as part of PR angular-ui#1211 but not all calls to the function were.
Hi, When my ng-model is null at first with placeholder "Please select". Do we have any option to turn off active blue background on the first item of the list. Because that make people confused when user click to open the dropdown and see the first item selected with blue background. The blue background on item should only be highlighted if ng-model has value when user select one item. Otherwise, we should leave all items in the dropdown list with white background as normal. Thanks |
+1 |
We were using
ng-mouseenter
to be able to set the hovered row as the active item, but this caused some lagging asng-mouseenter
was calling for a full $digest.Could be better just to show a simple hover background change (using css) and avoid doing a $digest.
Demo plunker