- Issue created by @bgreco
When dynamic caption settings are changed, they have no effect when viewing a page.
/admin/config/media/photoswipe_dynamic_caption
, change "Caption Position" to "Below".Result: the caption still appears to the right of the image, not below it.
When a page is initially loaded, Drupal.behaviors.photoswipeCaption deletes the caption options from drupalSettings, so the options are empty during all subsequent executions of attach()
. The caption options should be stored so they can be applied every time attach()
is called, not just the first time.
Active
5.0
Code