ui icon indicating copy to clipboard operation
ui copied to clipboard

Fancybox inside modal bootstrap, l can't change with keyboard because focus stay in back modal -

Open saturnov opened this issue 3 years ago • 6 comments

saturnov avatar Jul 26 '22 17:07 saturnov

Any demo?

fancyapps avatar Jul 26 '22 18:07 fancyapps

imagen

saturnov avatar Jul 27 '22 17:07 saturnov

[Bootstrap v5.0] l try to put inside modal of bootstrap and then call modal $('#staticBackdrop').modal('show'); Fancybox.bind('[data-fancybox="gallery1"]', { infinite: false, autoFocus: true, trapFocus : true, placeFocusBack : true, Thumbs: false, Carousel: { Dots: true, on: { change: (that) => { myCarousel.slideTo(that.page, { friction: 0 }); }, }, } });

saturnov avatar Jul 27 '22 17:07 saturnov

Any live demo? Sorry, but I can not understand your issue, a live demo would help to identify the issue and to give a proper answer.

fancyapps avatar Jul 29 '22 08:07 fancyapps

https://jsfiddle.net/0dev_babilonia0/Lfq3brmj/4/

saturnov avatar Aug 18 '22 19:08 saturnov

In this case, how to place the modal fade of the starter strap behind, when the gallery is opened and the left and right directional keys work correctly.. pls l need help

saturnov avatar Aug 18 '22 19:08 saturnov

But why do you use Bootstrap modal in the first place? Fancybox supports multiple open instances, so, you can use Fancybox to display modal with images and clicking them can open another Fancybox. Example - https://jsfiddle.net/c0td5461/

fancyapps avatar Mar 12 '23 12:03 fancyapps