angular-filter icon indicating copy to clipboard operation
angular-filter copied to clipboard

Filters on ng-repeat "go crazy" with ng-mouse*

Open zoff opened this issue 9 years ago • 1 comments

HTML Mouse events don't work as expected when bound to elements using ng-repeat with filters.

On a MacOSX 10.10 MacbookPro:

  • Firefox: events fire apparently "at random" with many mouseenter and few mouseleave.
  • Chrome: mouseleave event never fires and mouseenter fires on every mousemove.

Example: http://jsfiddle.net/pfk1v3z9/

Is there any way to avoid this? I already tried to apply mouse events to an inner div hoping to not trigger the filter on every event with no luck.

ATM I work-arounded the problem grouping on the controller with a $watch on my original collection.

zoff avatar Jan 09 '15 15:01 zoff

Oh wow. so that was it.

I was trying to implement this in DuckieTV, had to remove all the tooltips from my calendar and move my hover trigger events to plain js to make sure there's no DOM changes that trigger a complete re-render whenever an ng- mouse event is added(even nested in) and combined with groupBy and ng-repeat.

SchizoDuckie avatar Apr 04 '15 23:04 SchizoDuckie