Ionic tab click doesn't work


gfels

Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other:

<ion-item>
<ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label>
<ion-input  ></ion-input>

And the labelClick()function doesn't trigger anyway.

Is there anything I can do so that a click on the LABEL triggers the function? No need to change appearance/components used.

Here's a stackblitz with code showing that it doesn't work: https://stackblitz.com/edit/ionic-5yreac?file=pages%2Fhome%2Fhome.html

gfels

After a long investigation, I found out that this style is the problem (can be seen by inspecting the ionic tag):

enter image description here

So the solution is:

.item-input ion-label{
  pointer-events:all!important;
}

along with:

 .item-cover{
  display:none;
}

Related


Ionic tab click doesn't work

gfels Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other: <ion-item> <ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label> <ion-input ></ion-input> And the labelCli

Ionic tab click doesn't work

gfels Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other: <ion-item> <ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label> <ion-input ></ion-input> And the labelCli

Ionic tab click doesn't work

gfels Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other: <ion-item> <ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label> <ion-input ></ion-input> And the labelCli

Ionic tab click doesn't work

gfels Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other: <ion-item> <ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label> <ion-input ></ion-input> And the labelCli

Ionic tab click doesn't work

gfels Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other: <ion-item> <ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label> <ion-input ></ion-input> And the labelCli

Ionic tab click doesn't work

gfels Sometimes I don't understand why the Ionic is so stiff. I have an input and a label stacked on top of each other: <ion-item> <ion-label stacked (click)="labelClick($event)" [innerHTML]="htmlString"></ion-label> <ion-input ></ion-input> And the labelCli

Tab click doesn't work

rookie I tried following this demo https://www.youtube.com/watch?v=PP3x4crHBog but since I already named other tags I can't name the same thing, so I made some changes to the variable names and Using the skins and all the formatting, but whenever I click the l

Tab click doesn't work

rookie I tried to follow this demo https://www.youtube.com/watch?v=PP3x4crHBog but couldn't name the same since I already named other tags, so I made some changes to the variable names and Using the skins and all the formatting, but whenever I click the login

Click event doesn't work on tab

ask I have the following jsx code that doesn't work with mouseclicks: import React from 'react'; import Tabs from 'material-ui/lib/tabs/tabs'; import Tab from 'material-ui/lib/tabs/tab'; const Main = () => ( <div> <Tabs> <Tab label="Item One" >

Bootstrap tab click preventDefault doesn't work

Stacey I'm using bootstrap 3.3 and following the tabs in the documentation. The simplest code given in the documentation doesn't work for me and I can't figure out why. $('#mainTabs a').click(function (e) { e.preventDefault() console.lo

Bootstrap tab click preventDefault doesn't work

Stacey I'm using bootstrap 3.3 and following the tabs in the documentation. The simplest code given in the documentation doesn't work for me and I can't figure out why. $('#mainTabs a').click(function (e) { e.preventDefault() console.lo

Bootstrap tab click preventDefault doesn't work

Stacey I'm using bootstrap 3.3 and following the tabs in the documentation. The simplest code given in the documentation doesn't work for me and I can't figure out why. $('#mainTabs a').click(function (e) { e.preventDefault() console.lo

Bootstrap tab click preventDefault doesn't work

Stacey I'm using bootstrap 3.3 and following the tabs in the documentation. The simplest code given in the documentation doesn't work for me and I can't figure out why. $('#mainTabs a').click(function (e) { e.preventDefault() console.lo

Bootstrap tab click preventDefault doesn't work

Stacey I'm using bootstrap 3.3 and following the tabs in the documentation. The simplest code given in the documentation doesn't work for me and I can't figure out why. $('#mainTabs a').click(function (e) { e.preventDefault() console.lo

Ionic app, button click doesn't work

Mohan Gupta I'm working on an app and this is the second screen I'm having issues with. There is a skip button and when I press it, the "div with text in it" should hide. I wrote the code in typescript file "home.ts" and its html in home.html and css in home.c

Ionic trigger click event doesn't work

smchae I have a modal in an Ionic app, and when the modal is shown, I want to trigger a click event on a specific element. Controller $scope.$on('modal.shown', function() { document.getElementById('somemodal').click(); // #1 $( "#somemodal" ).trigg

Ionic trigger click event doesn't work

smchae I have a modal in an Ionic app, and when the modal is shown, I want to trigger a click event on a specific element. Controller $scope.$on('modal.shown', function() { document.getElementById('somemodal').click(); // #1 $( "#somemodal" ).trigg

Ionic trigger click event doesn't work

smchae I have a modal in an Ionic app, and when the modal is shown, I want to trigger a click event on a specific element. Controller $scope.$on('modal.shown', function() { document.getElementById('somemodal').click(); // #1 $( "#somemodal" ).trigg

Chrome doesn't work with vuejs v-on: click on options tab

blank 94 I have something like the following code: <select> <option v-for="category in step4.categoryList" v-on:click="setCategoryId(category.id)"> @{{category.category_name }} </option> </select> It works fine in firefox but not in chrome and safari

Show Bootstrap tab loaded with Ajax on first click doesn't work

dirty encoder I am trying to load the content of a given tab using Ajax. I'm rendering the first tab active on the server, and the other tabs are active and loaded using Ajax. The problem I've isolated (without Ajax) is here . HTML: <h1>Hello, tabs!</h1> <div

Chrome doesn't work with vuejs v-on: click on options tab

blank 94 I have something like the following code: <select> <option v-for="category in step4.categoryList" v-on:click="setCategoryId(category.id)"> @{{category.category_name }} </option> </select> It works fine in firefox but not in chrome and safari

Chrome doesn't work with vuejs v-on: click on options tab

blank 94 I have something like the following code: <select> <option v-for="category in step4.categoryList" v-on:click="setCategoryId(category.id)"> @{{category.category_name }} </option> </select> It works fine in firefox but not in chrome and safari

Chrome doesn't work with vuejs v-on: click on options tab

blank 94 I have something like the following code: <select> <option v-for="category in step4.categoryList" v-on:click="setCategoryId(category.id)"> @{{category.category_name }} </option> </select> It works fine in firefox but not in chrome and safari

Show Bootstrap tab loaded with Ajax doesn't work on first click

dirty encoder I am trying to load the content of a given tab using Ajax. I'm rendering the first tab active on the server, and the other tabs are active and loaded using Ajax. The problem I've isolated (without Ajax) is here . HTML: <h1>Hello, tabs!</h1> <div

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done, my links stop responding to left clicks. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the browse

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done my links stop responding to left clicks too. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the bro

Load new content in tab when button click doesn't work

Queensland I try to load content into a tab when a button is clicked. But the code below takes me to the first tab. HTML code: <div class="tabbable"> <ul class="nav nav-tabs"> <li class="active"><a href="#overview" >Overview</a></li>

Chrome doesn't work with vuejs v-on: click on options tab

blank 94 I have something like the following code: <select> <option v-for="category in step4.categoryList" v-on:click="setCategoryId(category.id)"> @{{category.category_name }} </option> </select> It works fine in firefox but not in chrome and safari

Chrome doesn't work with vuejs v-on: click on options tab

blank 94 I have something like the following code: <select> <option v-for="category in step4.categoryList" v-on:click="setCategoryId(category.id)"> @{{category.category_name }} </option> </select> It works fine in firefox but not in chrome and safari