Skip to content

works event option #3

@say8425

Description

@say8425

Story

Linkify events option is not works, because this option made for wokring pure dom element or jquery.

<template>
  <div v-linkify:options="{
    target: '_blank',
    attributes: {
      onclick: 'event.stopPropagation()',
    },
  }">
    ...
  </div>
</template>

So we should use attributes for using events. But as you known this is not good DX.

Solution

Maybe I can bind directive.option.event with attributes.event?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions