WIP: AJAX Event Causes Product Reviews Element To Duplicate Star Rating

Browser: Firefox
OS: Windows

Using the Product Reviews element, whenever there is an AJAX event initiated on the website, the Star Rating section where the user selects the rating is duplicated.

This image is from a cleared cache and shows only a single rating section. p class=“stars”

In this image, I had an AJAX event and it duplicates the p class=“stars”

I’ve also replicated this on Chrome and Edge. I’ve also tried with different AJAX events native to Bricks and are all causing this issue.

Right now the only way to hide it is with this code:

.comment-form-rating p.stars:not(:first-of-type) {
    display: none;
}

Hello @JeremyF,

first, welcome to the forum! :partying_face:

I was able to replicate the issue locally, and I’ve added it to our bug tracker.

Thank you.
Matej

Hey @Matej!

Thank you! Bricks has been great so far and I can’t wait for the 2.0 update.

2 Likes