Field flexslider broken on plugin cache clear

Created on 23 September 2017, about 7 years ago
Updated 12 September 2023, about 1 year ago

Description:
Field formatted flexslider becomes broken after plugin cache is cleared if there is another flexslider, views-based, is present on the page. Initially, both slideshows show, but later the field-based slideshow stops working if plugins cache but not render cache is cleared.

To reproduce:
1. Create another optionset, so you have two optionsets.
2. Create a node type with image field with flexslider formatter, and assign your second optionset to it.
3. Create a view with a block display with the flexslider formatter, and assign the default optionset to it.
4. Place the view on the page in a block.
5. Now, view the node page. Initially, both sliders are visible. Then, if you clear the plugins cache, the views slider is visible, but the field formatter slider is gone.

Debug info:
When all caches is cleared, both optionsets are added to the drupalSettings. However, later, if a plugins gets cleared, the views-based slider regenerates, but the field-based slider not. Thus, drupalSettings no longer has information about the field formatter slider.

This is a major, because the field formatter slider is not showing under these conditions. All code and html is there, but the drupalSettings no longer contain the info.

A possible solution would be to always load all optionsets in settings, and apply them based on the flex-optionset attribute of the element.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇬Bulgaria alexrayu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024