Skip to content

bug: ion-activated class removed when contextmenu event #25544

@Klapik

Description

@Klapik

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

When I hold element with ion-activatable class, hover only appears for a moment. Class ion-activated is removed after a while. It's because changes in tap-click.ts file - event contextmenu is fired on longpress and after the changes, the hover breaks.
link to changes

Expected Behavior

When I hold element with ion-activatable class, hover should stay as long as the hold is taking.

Steps to Reproduce

  1. Add an element with a class to the view, e.g. <div class="ion-activatable">test</div>.
  2. Hold element on mobile device.

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.1.11
@angular-devkit/build-angular : 13.3.3
@angular-devkit/schematics : 13.3.3
@angular/cli : 13.3.3
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 3.4.3
@capacitor/android : 3.4.3
@capacitor/core : 3.4.3
@capacitor/ios : 3.4.3

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v16.14.2 (/usr/local/bin/node)
npm : 8.5.0
OS : macOS Big Sur

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions