From b6ae19cfb921424979ae11c97010b65581dc7011 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 29 Sep 2015 19:45:45 -0500 Subject: [PATCH] fix(item): allow clicks from within item content Closes #215 --- ionic/components/item/item.scss | 5 +++ ionic/components/item/test/buttons/index.ts | 8 ++++- ionic/components/item/test/buttons/main.html | 35 ++++++++++---------- 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/ionic/components/item/item.scss b/ionic/components/item/item.scss index e82397e1ea..95041526d9 100644 --- a/ionic/components/item/item.scss +++ b/ionic/components/item/item.scss @@ -63,6 +63,11 @@ ion-item-content { overflow: hidden; text-overflow: ellipsis; pointer-events: none; + + a, + button { + pointer-events: auto; + } } .item-text-wrap ion-item-content { diff --git a/ionic/components/item/test/buttons/index.ts b/ionic/components/item/test/buttons/index.ts index 43aed36502..2afa53ee3b 100644 --- a/ionic/components/item/test/buttons/index.ts +++ b/ionic/components/item/test/buttons/index.ts @@ -4,4 +4,10 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) -class E2EApp {} +class E2EApp { + + testClick(ev) { + console.log('CLICK!', ev.target.tagName, ev.target.textContent.trim()); + } + +} diff --git a/ionic/components/item/test/buttons/main.html b/ionic/components/item/test/buttons/main.html index 2810fb108c..09a63cf7a8 100644 --- a/ionic/components/item/test/buttons/main.html +++ b/ionic/components/item/test/buttons/main.html @@ -2,72 +2,72 @@ - + a[ion-item] - + a[ion-item].activated - - - + Inner Buttons - + - left icon buttons - - right icon buttons - - icon only buttons - ion-item right icon/text button - - @@ -76,15 +76,16 @@ ion-item right clear button - This is multiline text that has a - long description of about how the text is really long. - + long description of about how the text is really long + and a link. +