Code Monkey home page Code Monkey logo

Comments (7)

morkro avatar morkro commented on May 27, 2024 1

I think this should be (hopefully) fixed now? :)

from vue-a11y-dialog.

marcus-herrmann avatar marcus-herrmann commented on May 27, 2024

@morkro Since the "raw" component/the plugin itself works with Vue 3, I looked into the build process. At first I tried to update the existing rollup infrastructure, but failed. Next, I used vite and got at least to this point: https://github.com/marcus-herrmann/vue-a11y-dialog-next. A sample vue-cli project with "vue-a11y-dialog": "github:marcus-herrmann/vue-a11y-dialog-next" works just fine. The only trouble left are the tests.

Just thinking out loud, maybe the best strategy from now on would be:

  • branch: master/main: Vue 2 version, rollup-based build
  • branch: next (also git tag next): Vue 3 version, Vite-based build

What do you think?

from vue-a11y-dialog.

marcus-herrmann avatar marcus-herrmann commented on May 27, 2024

It is published on npm (will be unpublished soon, just for the experiment), and when I use my fork in a local Vue 3 instance (vue-cli) on my computer, it works as expected.

I found an interesting difference of my fork, between local usage and using it on CodeSandbox and Stackblitz.

This code works on a local vue-cli installation just fine, but fails in both online editors: https://codesandbox.io/s/quiet-violet-erzqq?file=/src/App.vue

The main difference is the "dialog-ref" custom event. On my machine, the event gets sent by the script and caught by the App. As intended, and working exactly like the Vue 2 version. But on codesandbox (and StackBlitz) the event does not get sent and is not received, of course. So the dialog state stays "null" and the whole modal isn't working.

Do you happen to have an idea why this happens? What really strikes me as odd that it works locally (and it's not any npm link remain, or something).

/edit:

it was the event syntax in CSB: v-on:dialog-ref="assignDialogRef" works.

from vue-a11y-dialog.

morkro avatar morkro commented on May 27, 2024

Thanks for investigating @marcus-herrmann! I am currently looking into this and will be updating a few things with the library. I didn't have the time until now to take care of this.

from vue-a11y-dialog.

mgiraldo avatar mgiraldo commented on May 27, 2024

@marcus-herrmann i'm having this same issue (upgrading a vue 2 app to 3). your fork seems to have solved the errors. i do still get many warnings but i'm first addressing other component errors. 👍

from vue-a11y-dialog.

mgiraldo avatar mgiraldo commented on May 27, 2024

i resorted to using marcus's package since it was addressing the issue. after returning to this one (v1.1.1) i run into an inheritAttrs issue (see: https://v3.vuejs.org/api/options-misc.html#inheritattrs). i will look into this again later

from vue-a11y-dialog.

marcus-herrmann avatar marcus-herrmann commented on May 27, 2024

I think this should be (hopefully) fixed now? :)

Yes, thank you!

from vue-a11y-dialog.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.