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. In other words, @click doesn't work in chrome when it's in the options tab.

Obviously, I'm using vuejs.

Any ideas?

dfsq

The Click event on the options tag shouldn't fire at all. Don't rely on it to bind the onchange event on selection:

<select v-on:change="setCategoryId">
  <option
    v-for="category in step4.categoryList"
    :value="category.id">
    @{{category.category_name }}
  </option>
</select>

Then in setCategoryIdfetch event.target.value, this will be your ID.

Related


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

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

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

VueJs 2 click doesn't seem to work

Dylan Glockler I'm not getting any errors and it's compiling so I'm not sure what I'm doing wrong.I searched for this topic without success. I have BulkExpenses.vue which pulls and displays some expense records, then BulkExpenses.vue is a nested component that

VueJs 2 click doesn't seem to work

Dylan Glockler I'm not getting any errors and it's compiling so I'm not sure what I'm doing wrong. I searched for this topic without success. I have BulkExpenses.vue which pulls and displays some expense records, then BulkExpenses.vue is a nested component tha

VueJs 2 click doesn't seem to work

Dylan Glockler I'm not getting any errors and it's compiling so I'm not sure what I'm doing wrong. I searched for this topic without success. I have BulkExpenses.vue which pulls and displays some expense records, then BulkExpenses.vue is a nested component tha

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

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

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

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 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

click event on options doesn't work in Safari

Large size I will recreate my problem with a very simple code (see below): <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body> <select class="a"> <option class="b" value="opt1">o

click event on options doesn't work in Safari

Large size I will recreate my problem with a very simple code (see below): <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body> <select class="a"> <option class="b" value="opt1">o

click event on options doesn't work in Safari

Large size I will recreate my problem with a very simple code (see below): <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body> <select class="a"> <option class="b" value="opt1">o

Copy to clipboard doesn't work on Chrome in VueJS

Vinavi Anutara In my VueJS app, I have a component that copies the base URL to the clipboard by clicking a link <a @click="copyURL" ref="mylink"> <img class="social_icon" src="/images/game/copy-fr.png" alt="Copy icon" /></a> <in

Javascript to select options doesn't work in Chrome

John Montague The following code works in Internet Explorer and Firefox, but not Chrome. Does anyone know what modifications are required? //* From the javascript file function hide_show(vals){ if(vals=="food"){ $("#fruit").hide().find(