You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to open another Fancybox, based on div from html loaded through ajax fancybox, for some reason "inline" type is ignored, and new instance is created as clone. Note that this was not the issue with the v4.
Reproduction
Open some html through Fancybox ajax type. Html in question should contain an element with id attribute and display: none as style.
Programmatically open another Fancybox with src set to the element from step 1 and inline as type.
Instead of showing div in question, Fancybox creates a clone.
I've tried to upgrade Fancybox from v4 to v5 on my app, and while everything else works after some options rearrangements, the problem described above drives me nuts, as now I need to rewrite lots of markup to escape double-ids.
The text was updated successfully, but these errors were encountered:
Describe the bug
While trying to open another Fancybox, based on div from html loaded through ajax fancybox, for some reason "inline" type is ignored, and new instance is created as clone. Note that this was not the issue with the v4.
Reproduction
id
attribute anddisplay: none
as style.inline
as type.test.html
attachedtest.html.txt
Code to run:
Fancybox.show([{'src': 'test.html','type': 'ajax'}]);
Fancybox.show([{'src': '#sample','type': 'inline'}]);
Additional context
I've tried to upgrade Fancybox from v4 to v5 on my app, and while everything else works after some options rearrangements, the problem described above drives me nuts, as now I need to rewrite lots of markup to escape double-ids.
The text was updated successfully, but these errors were encountered: