I was playing around with an ajax load more button today and run into a strange issue.
Im using the plain starterkit and followed all instructions from the cookbook. So far everything works fine.
I click the button and ajax loads the next 2 projects and the button disappears when no more project are there to show.
But if I add a new Project (now I have 6 in all) and I click the button again ajax loads the projects correctly but the button stays there even if all existing projects are already shown. Now I have to click the button one more time. When I check the logs, the more value is still on
true. When I delete the new added Project (Now im back to 5 Projects) it’s working fine again and the button disappears. Can anyone else confirm the same issue?
I tested it with 6,7,8,9,10 Projects and I’m always getting the same issue.
Thanks in advance!