I am using the refinementList widget with vanilla JS and have the following template defined for the showMoreText:
return isShowingMore ? “Less” : “More”;
The toggle button always shows “Less” even when toggling the button to show more/less items. When debugging the code, I can see the value of isShowingMore is correctly changing between true and false but the button text in the UI is always showing “Less”.
What am I missing here? Thanks.