-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: ion-activated class removed when contextmenu event #25544
Comments
Thanks for the issue. The code in 2c07a15#diff-a2c042e751c5816179d1f73c952a6828a85b41cdf1f31d8d27f78222f7d4769fR163 was added to account for the This change had the unintended side effect of causing In terms of fixing this, we can likely do the following:
|
Thanks for the quick reply, the repair proposal sounds very good |
Can you give this dev build a try and let me know if it resolves the issue on your end?
|
In One more thing that i found is the class ion-activated is removed on Android on pointercancel event (fired on touchmove) - this is not blocker because it works much better anyway. (i think there is no need to create new issue for this) I think we can live with the difference and your fix for contextevent is sufficient. Good job and thanks! |
Glad to hear the issue is resolved. The other behaviors you noted align more closely with how native iOS and Android apps behave. The activated state should be removed when scrolling (This is what #25352 (comment) has sample videos if you are interested in all the details. I will keep this issue open until the fix has merged into |
Thanks for the issue. This has been resolved via #25551, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
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
<div class="ion-activatable">test</div>
.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
The text was updated successfully, but these errors were encountered: