openeuropa / oe_bootstrap_theme

Bootstrap-based theme
European Union Public License 1.2
6 stars 13 forks source link

Media Library pagination not working #257

Open bogdan24pop opened 2 years ago

bogdan24pop commented 2 years ago

The media library pagination is not working properly, if you click on next page an Ajax error occurs. Seems that the js-pager__items class is missing.

brummbar commented 1 year ago

Hello @bogdan24pop , of which media library are we talking about?

brummbar commented 1 year ago

Unfortunately in the current implementation, classes are lost when rendering the pager.

msnassar commented 9 months ago

@brummbar Without "js-pager__items" being added to the pagination list, the ajax pagination is not working. Steps to reproduce:

All core themes set this class in pager.html.twig and views-mini-pager.html.twig

I created a ticket for BCL too https://github.com/openeuropa/bootstrap-component-library/issues/565

If you agree with the proposed solution, we then need to add the following to the pagination pattern: 'list_attributes': create_attribute({class: ['js-pager__items']}),