checkbox updates

This commit is contained in:
Adam Bradley
2015-07-31 18:22:38 -05:00
parent b89f383ecc
commit 5db5c41809
6 changed files with 49 additions and 80 deletions

View File

@@ -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() {