Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Duplicate Results › Reply To: Duplicate Results
August 25, 2021 at 11:08 pm
#34384
Participant
Everything under Grouping & Other is turned off.
In using a javascript mutation observer, one thing I’m noticing is it seems the results are running twice each time. In the mutation observer I’m using querySelectorAll to list all the results. It should run one time and display ten nodes in the console.log. Instead, it runs twice. So I’m adding a data attribute on each result element when I add the listener, so that on the second run the listeners aren’t added a second time.