ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.95k stars 13.51k forks source link

[4.0.0-rc.0] Ion toggle click event not working in browser only #16872

Closed pavillet closed 5 years ago

pavillet commented 5 years ago

Bug Report

Ionic version:

[x] 4.x

Current behavior:

Clicks on ion-toggle do not activate the component, sliding it does. Please note that this only happen in browser, mobile is fine. It's also working if you enable the 'device mode' in chrome dev tools ( ie, simulating a mobile device with Chrome), which I suspect means the touch event is working.

Expected behavior:

"Click" should trigger the change on

Ionic info:

Ionic:

ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.0-rc.0 @angular-devkit/core : 0.7.5 @angular-devkit/schematics : 0.7.5 @angular/cli : 7.0.7 @ionic/ng-toolkit : not installed @ionic/schematics-angular : 1.0.6

Cordova:

cordova (Cordova CLI) : 8.0.0 Cordova Platforms : none Cordova Plugins : no whitelisted plugins (0 plugins total)

System:

ios-deploy : 2.0.0 NodeJS : v10.10.0 (/usr/local/Cellar/node@8/8.11.3/bin/node) npm : 6.4.1 OS : macOS Xcode : Xcode 10.0 Build version 10A255

pavillet commented 5 years ago

@manucorporat Issue persists in RC2, did a rm -rf node_modules && npm i to be sure

ionitron-bot[bot] commented 5 years ago

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.