Skip to content

Commit

Permalink
fix(item): tappable does not make ion-label pointer-event:none
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored and adamdbradley committed Dec 8, 2016
1 parent 25e581a commit 4512c5c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/components/item/test/buttons/app-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export class E2EPage {
testClick(ev: any) {
console.log('CLICK!', ev.target.tagName, ev.target.textContent.trim());
}

testClickOutsize(ev: any) {
console.log('CLICK OUTSIDE!', ev.target.tagName, ev.target.textContent.trim());
}
}

@Component({
Expand Down
13 changes: 12 additions & 1 deletion src/components/item/test/buttons/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
button[ion-item] danger
</button>

<ion-item>
<ion-item (click)="testClickOutsize($event)">
<button ion-button item-left (click)="testClick($event)">Default</button>
Inner Buttons
<button ion-button outline item-right (click)="testClick($event)">Outline</button>
Expand Down Expand Up @@ -111,6 +111,17 @@ <h3>ng-for {{i}}</h3>
<ion-badge item-right>260k</ion-badge>
</button>

<ion-item (click)="testClickOutsize($event)">
<div>
<button ion-button icon-only clear item-right (click)="testClick($event)">
<ion-icon name="remove-circle"></ion-icon>
</button>
<button ion-button icon-only clear item-right (click)="testClick($event)">
<ion-icon name="add-circle"></ion-icon>
</button>
</div>
</ion-item>

</ion-content>


Expand Down
3 changes: 1 addition & 2 deletions src/themes/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ textarea {
}

a ion-label,
button ion-label,
[tappable] ion-label {
button ion-label {
pointer-events: none;
}

Expand Down

0 comments on commit 4512c5c

Please sign in to comment.