mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(item): tappable does not make ion-label pointer-event:none
This commit is contained in:

committed by
Adam Bradley

parent
25e581a7ea
commit
4512c5c858
@ -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({
|
||||
|
@ -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>
|
||||
@ -111,6 +111,17 @@
|
||||
<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>
|
||||
|
||||
|
||||
|
3
src/themes/normalize.scss
vendored
3
src/themes/normalize.scss
vendored
@ -156,8 +156,7 @@ textarea {
|
||||
}
|
||||
|
||||
a ion-label,
|
||||
button ion-label,
|
||||
[tappable] ion-label {
|
||||
button ion-label {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user