defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

Unusual reaction with pjax (Content is duplciating) #732

Open marsalans opened 3 years ago

marsalans commented 3 years ago

gdf8g4df8g8dfg

fdg4df8g4df8g4d

My content is duplicating when i use pjax, when i visit a page, go back then come again to same page then i notice select2 dropdown and datatable button and paginations are duplicating.

f4g8df48g4d8fgd This is page when i first view it and on top when i go back and come again.

Loading function is working fine and page is loading in container.

i use $(document).pjax('.psa', '#contentArea');

.psa is what i give class name to anchor.

previously i use custom ajax method to laod pages it works but sometimes css and js files do not load then i try pjax then i found this issue. I dont know if they are reinitializing or what, but as pjax documentation says it do not reinitialize modules.

My jquery version is 2.2.4

marsalans commented 3 years ago

anybody there ? is this project abandoned ?