mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(toggle): use caps for tag name check
This commit is contained in:
@ -257,6 +257,6 @@ export class Toggle {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
isDisabled(ev) {
|
isDisabled(ev) {
|
||||||
return (this.lastTouch + 999 > Date.now() && /mouse/.test(ev.type)) || (this.mode == 'ios' && ev.target.tagName == 'ion-toggle');
|
return (this.lastTouch + 999 > Date.now() && /mouse/.test(ev.type)) || (this.mode == 'ios' && ev.target.tagName == 'ION-TOGGLE');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user