mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
checkbox updates
This commit is contained in:
@@ -34,7 +34,7 @@ export class TapDisabled {}
|
||||
|
||||
|
||||
@Directive({
|
||||
selector: 'a,button,[tappable]',
|
||||
selector: 'button,[button],[tappable],ion-checkbox',
|
||||
host: {
|
||||
'(^touchstart)': 'touchStart($event)',
|
||||
'(^touchend)': 'touchEnd($event)',
|
||||
@@ -143,13 +143,20 @@ export class TapClick {
|
||||
});
|
||||
}
|
||||
|
||||
click(ev) {
|
||||
allowClick(ev) {
|
||||
if (!ev.isIonicTap) {
|
||||
if (this.disableClick || !this.start) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
click(ev) {
|
||||
if (!this.allowClick(ev)) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user