After successfully implementing the "Stars rating" feature from https://codepen.io/462960/pen/WZXEWd, I noticed that the page abruptly jumps up after each click. Determined to find a solution, I attempted the following:
const labels = document.querySelectorAll('label');
function noDefault(e){
e.preventDefault();
};
labels.forEach(x => x.addEventListener('click', noDefault));
Unfortunately, this method proved to be less than ideal as it prevented inputs from being checked, rendering it unusable on a web page. Any recommendations or suggestions would be greatly appreciated.