Native popover using swup v2 #945
-
Describe your problem 🧐Hi all, using native HTML5 popovers, seems giving issue when opening any popovers inner links. Found also an old thread about classic dialog element, but not exaustive dialog example has been provided on swup fragment official documentation, neither for newest popover element, which are now official browsers standard. Let's suppose something like:
swup is then stucked on ".is-animating .is-leaving .to-page2" What is your question? 🙋♀️
I tried something like adding [popover] as additional containers, but breaks swup ajax transitions. URL to minimal reproduction 🔗https://swup.js.org/plugins/fragment-plugin/#modals-and-accessibility Checked all these? 📚
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
What's the goal? Make links inside a popover load the new content into the popover? |
Beta Was this translation helpful? Give feedback.
-
(Creating a minimal reproduction will make this much easier for others to chime in.) |
Beta Was this translation helpful? Give feedback.
-
Hi, Just that. Popover links > open new page . As I understood, popovers are on top level, so they break someway default swup functionality. • Popover are inside the ##swup container, if this could help. So basically layout is the default one: ##swup container
I may need making this work as any modal/dialog/popup work : close itself and go to destination url. Actually breaks and stuck the swup loading state. |
Beta Was this translation helpful? Give feedback.
-
[SOLVED]It has been an old version of SWUP (2.xx), so old syntax, and old functions. Updated to latest libs, and everything works smoothly. Thanks all. :) |
Beta Was this translation helpful? Give feedback.
[SOLVED]
It has been an old version of SWUP (2.xx), so old syntax, and old functions.
Updated to latest libs, and everything works smoothly.
Thanks all. :)