The sorting JS code uses a parent selector to find the elements. But when the parent selector is not used in the template or if multiple elements with the parent-selctor classnames are existing, the code will only use the last parent element to search for the sorting elements.
Removed the parent selector. Magento default uses [role=""] selectors to search for the elements. This works.
We ran into an issue with the sorting on the plp.
The sorting JS code uses a parent selector to find the elements. But when the parent selector is not used in the template or if multiple elements with the parent-selctor classnames are existing, the code will only use the last parent element to search for the sorting elements.
Removed the parent selector. Magento default uses [role=""] selectors to search for the elements. This works.