Comments (7)
I think this should be (hopefully) fixed now? :)
from vue-a11y-dialog.
@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.
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.
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.
@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.
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.
I think this should be (hopefully) fixed now? :)
Yes, thank you!
from vue-a11y-dialog.
Related Issues (16)
- <router-link> not working inside dialog content. HOT 2
- Vue i18n functions not available inside dialog HOT 1
- odd issue with dialog root element not existing HOT 3
- vue-a11y-dialog not working in MS Edge HOT 5
- IE11 issue HOT 1
- aria-labelledby is missed if titleId property is not specified HOT 2
- Migrate to version 7 of a11y-dialog HOT 13
- Add an event that fires on close
- 1.1.0 build issue from esm HOT 6
- Alert dialog overlay HOT 4
- Can you provide types?
- API documentation: app-root="#app" may not be the best example HOT 6
- Dialog title implementation and README example mismatched HOT 2
- issue rendering two dialogs on the same page. HOT 10
- remarks on implementation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-a11y-dialog.