CuBoulder / tiamat-theme

University of Colorado Boulder Drupal 9+ base theme
GNU General Public License v2.0
3 stars 0 forks source link

Media Library Breaks After 2nd Page #952

Closed jnicholCU closed 6 months ago

jnicholCU commented 6 months ago

Wendy has run into this issue a few times where if she has a media library that extends passed 2 pages it becomes difficult or impossible to select items.

On the 3rd-5th page, no matter what image she selects, it will pick an image from the 1st or 2nd page at the same position in the grid.

On the 6th+ page she starts to lose the ability to even select items as they don't have check boxes. The insert button does not seem to work either.

However when I view these things I do not have any of these problems which lead me to believe it could be a caching issue site side or browser side.

Clearing the full cache fixes this problem for Wendy. She does not have the ability to clear site caches and it seems that hard-refreshing the page doesn't help either.

This happens in both the basic layout and layout builder. Not sure how we want to proceed with fixing this or if there is a fix.

Wendy's 6th page MicrosoftTeams-image (4)

My 6th page

image
jnicholCU commented 6 months ago

@jcsparks I have confirmed this error happens in a dev environment too and not just on sandbox sites. After third page of images, selecting an image either gets me the wrong one on insert, or doesn't allow me to insert at all. A cache clear fixes it but as soon as I add enough images to cause a page shift again, the problem crops up.

jnicholCU commented 6 months ago

There are also no errors thrown in the dlog or dev tools console when these problems crop up.

jnicholCU commented 6 months ago

Ah! Found the problem .It is a known issue. Error thrown: Duplicate form field id in the same form this is a known issue for all forms. Live issue

I was wrong this is a different issue.

jnicholCU commented 6 months ago

This is the issue I was looking for. It is a known issue. Fix in 10.3 and 11 Looks like the media library view is getting cached when it doesn't need to be. That gets turned off in 10.3 & 11

https://www.drupal.org/project/drupal/issues/3388913