AcidLava Posted November 22, 2023 Share Posted November 22, 2023 (edited) Hi, On a product with reviews, when clicking on "Read user reviews" (linked to an anchor by the module), the page refresh quicky after. Any idea on how to fix this issue ? Thanks. Expected behavior Should stay to the bottom page comments list without refreshing the page. Steps to reproduce Click to "Read user reviews" on a product with reviews. PrestaShop version(s) where the bug happened 8.1 PHP version(s) where the bug happened 8 Module Product Comments Edited November 22, 2023 by AcidLava (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted December 19, 2023 Share Posted December 19, 2023 HiThe preventDefault() function in your code shared i.e. ((click)="$event.preventDefault()") is intended to stop the default action of the link (which is page navigation). Please check if there's any other script or event handler that might be overriding this behaviorAlso, Verify that the anchor link (href="#product-comments-list-header") is correctly targeting the ID of the reviews section. Means that the ID should be present on the page Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now