I have a SPA using Vue and Vuetify. One of my Vuetify text fields needs to have a anchor tag in the label. The link appears but is not clickable.
Here is an HTML Fiddle
Here is a basic demo of my problem
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
<v-app>
<v-main>
<v-container>
<v-text-field
label="Product Code"
placeholder="Product Code">
<template #label>
<h3>Product Code : (Find the product code
<a href="https://www.google.com">here</a>)
</h3>
</template>
</v-text-field>
</v-container>
</v-main>
</v-app>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
<script>
new Vue({
el: '#app',
vuetify: new Vuetify(),
})
</script>
</body>
</html>
Update
I've notice in the vuetify CSS there is pointer-events: none;
... seems that that is preventing the click event.