Hey Guys, this will be fun, me reporting a BUG in Toolset rofl.
So, I'm pretty sure there's a BUG in Toolset Views and Blocks AJAX events (Pagination, Search).
I'm reporting it here in the hope of a quick patch.
Steps to see the issue:
- Install and deploy this Duplicate: enlace oculto
- Navigate to /the-view/ page and paginate the View (there are two items in the loop, paginated by one with a "Next/Prev" pagination).
- Observe how on the second "page" (after AJAX) most (but not all) styles are not applying anymore.
To compare to what should be seen, check the two pages in the View Loop: "A first page", "Second Page". You will notice that the styles of blocks added to "Second Page" are not retained in the AJAXified View after pagination.
I also added two screenshots showing the difference(s).
Steps on fresh:
- Create some pages or posts with several Blocks (container, social media, whatnot, please try them all 🙂 ) and style them using the inbuilt features of either blocks or views.
- create a view (doesn't matter if with legacy Views or newer Blocks), paginate it by one, manually with AJAX update
- trigger the pagination on the front end and observe some styles are lost after AJAX fired (some blocks don't even display anymore as you will see).
I tested the issue with today's latest released versions, on several servers and browsers and I also replicated it on the attached (clean and fresh) duplicate.
Note
I noticed - on my live server - the issue is worse: for example, Containers retain background-styles locally but do not retain them online. These different results might be due to anything; I just couldn't replicate that small detail myself clean. I hence can't resist but suggest a full-stack test on "retain styles after AJAX events" in views 😉
Technically I suspect it is happening because Views/Toolset prints into the HTML the styles used as some base64 string or similar and then seems to parses that with JS back to CSS. After an AJAX event, this simply seems to "not happen" and hence, most of the styles are lost.
It's just a guess; I did not profoundly debug it.
I've checked errata etc., but could not find anything new.
PS
Blocks is excellent, no doubt, but Layouts and Views are more magnificent. I still can't substitute all features of magic Toolset, using Blocks.
Are you still taking suggestions/feature requests? I would have a few, just for the record 🙂
So, I hope we could get a quick patch for the issue, it would be cool - right now all Views need to be paginated "hard" (no ajax), and that's not so nice.