question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi. I wonder when are you going to offer support to Vue 3. I had look at your code and seen that something can be done:


ShortKey.install = (app, options) => {
    elementAvoided = [...(options && options.prevent ? options.prevent : [])];
    app.directive('shortkey', {
        created(el, binding, vnode) {
            // Mapping the commands
            const value = parseValue(binding.value);
            console.log(value);
            bindValue(value, el, binding, vnode);
        },
        updated(el, binding, vnode) {
            const oldValue = parseValue(binding.oldValue);
            unbindValue(oldValue, el);

            const newValue = parseValue(binding.value);
            bindValue(newValue, el, binding, vnode);
        },
        unmounted(el, binding) {
            const value = parseValue(binding.value);
            unbindValue(value, el);
        },
    });
};

This is the breaking changes from vue 2/3 https://v3.vuejs.org/guide/migration/custom-directives.html#custom-directives

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:8
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
fgr-araujocommented, Oct 18, 2021

Ok!! I will look at this asap.

5reactions
danielelkingtoncommented, Mar 21, 2022

Have raised a pull request, and have also published an npm package vue-three-shortkey to use in the meantime until the PR is merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions - Vue.js
What browsers does Vue support? #. The latest version of Vue (3.x) only supports browsers with native ES2015 support. This excludes IE11. Vue...
Read more >
Vue.js 3 support - BootstrapVue
Quickly integrate Bootstrap v4 components with Vue.js. ... @vue/compat support is designed for early migration to Vue.js 3 and will be eventually replaced ......
Read more >
Vue 3 – A roundup of infos about the new version of Vue.js
This version will be available as a LTS (long-term support) version for 18 months, which means that it will still get security updates...
Read more >
Which UI Frameworks Support Vue 3? - In Plain English
Amplify UI is a component library (38 components) with support for Vue 3 and focus on Amazon AWS compatibility.
Read more >
Vue - endoflife.date
Vue is a JavaScript framework for building user interfaces. It builds on top of standard ... Release, Released, Active Support, Security Support, Latest ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found