Closed stonners closed 3 years ago
this.bind is just a test like found in other issues but doesn't work
Hello @stonners what exactly are you trying to achieve, or expect to happen ?
I expect that when I press my button to add new items, highway takes into account the new href and therefore that the links remain internal, without reloading
Have you console.logged your ctx
array and compared the items in it ? Are there "new" items in the array ?
yeah, it s a node list and i have my news items in
A live demo with console logs would be useful here, could you provide that. ?
I display 6 items at a time, and I can clearly see the new items, but i think highway dont attach my new href
What's the forEach for ?
what foreach?
it's just a structure, they are containers and in the containers, I have with divs in them
On the object.values
I think your issue might come from there, you're looping too much on the new link elements you added
I would advise you to just do the querySelector on the document + bind once on the ajax update event you have, that should do the trick.
Hello i have a problem i am using the highway for the transition and i am using paginator which allows em to parse a big data stream, however when i click the button to show more content the do not give their href to highway so that highway takes them as external links. I already tried to do "H.attatch (myVar)" but it didn't work