We have a Ionic V6 Electron app that uses contextmenu
(mouse right click) on ion-segment-buttons
. After opening and closing the contextmenu
, segment buttons appear to be activated by hover.
This can be seen by going to Ionic Framework components: ion-segment-button | Segment Button Icon and Segment Value, then
- right clicking on checked segment
- clicking off to remove context menu
- moving mouse over other segments
This affect can be removed by left clicking on one of the segments.
I notice after this right click event segment-activated
is added to ion-segment
and segment-button-activated
is added to each ion-segment-button
. However removing these classes using classList.remove
does not change this behavior.
How can this behavior be avoided or resolved somehow?
This may be similar to this post from years ago, but not sure: Unexpected ion-segment-button hover event.
BTW this appears to only happen on a Mac and not on Windows.