I have the simplest nuxt3 project and my button when pressed doesn't register a click event.
Why? Or where can I look for a solution?
<button @click="console.log('PRESSED')" class="bg-gray-500">GENERATE TEXT</button>
. Replication:
npx nuxi init replica_projectcd replica_projectnpm install --save-dev @nuxtjs/tailwindcss- Added in
nuxt.config.tsmodules: [ '@nuxtjs/tailwindcss' ] - Put
<button @click="console.log('I got hit on')" class="bg-gray-500">HIT ME BABY</button>in theApp.vuefile `
Tried Solutions:
- Add
.native:<button @click.native="console.log('PRESSED')" class="bg-gray-500">GENERATE TEXT</button>