Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Exposed hook functions with Vue 2 and Vue 3 names #519

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dgoldstein89
Copy link

Adds support for directive for Vue 3 by exposing the directive hook functions with Vue 3 names as was mentioned in issue #498 .

*/
export function createDirective(directiveOptions = {}) {
function hookFunctions(directiveOptions) {
const instanceMaskReplacers = extendMaskReplacers(
directiveOptions && directiveOptions.placeholders,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
directiveOptions && directiveOptions.placeholders,
directiveOptions?.placeholders,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants