<template>
  <v-text-field
    dense
    v-bind="$attrs"
    type="email"
    prepend-icon="$sockiAt"
    v-on="$listeners"
    @click:prepend="openUrl"
  ></v-text-field>
</template>
<script>
export default {
  methods: {
    openUrl() {
      if (
        this.$el &&
        this.$el.attributes &&
        this.$el.attributes.value &&
        this.$el.attributes.value.value
      ) {
        window.open(`mailto:${this.$el.attributes.value.value}`, "email");
      }
    }
  }
};
</script>
