inconsistent ng-mouseenter and ng-mouseleave behavior between google-chrome and firefox

1,101 views
Skip to first unread message

Daniel Szak Ferenc

unread,
Dec 16, 2012, 4:44:03 PM12/16/12
to ang...@googlegroups.com
Please, check the following plunker.

The desired behavior would be:
  • clicking on a ng-switched SPAN should toggle a selected class on the UL element and trigger ng-switch SPAN
  • entering/leaving a LI should show/hide it's background, independently of the state (selected or not) of the UL and the ng-switched SPAN
I was told on IRC, that in firefox this works as expected (i can not confirm this, since i have no FF installed), but in chrome it looks like the ng-mouseenter/leave callbacks do not get called after once clicking, but the clicks continue to work even after.

Is this a know quirk/feature of chrome?

I'm not interested in solutions involving the restructuring the DOM fragment, since i'm converting an existing html.

Thanks for reading.

Daniel Ferenc Szak

unread,
Dec 16, 2012, 5:29:30 PM12/16/12
to ang...@googlegroups.com
Me again...
It looks like using the ng-mouseover and the undocumented ng-mouseout it does work.

(the lack of doc for the out event was the reason i did not even try the mouseover before...)

Now back to happy coding.


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
 
 

Reply all
Reply to author
Forward
0 new messages