Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unusual reaction with pjax (Content is duplciating) #732

Open
marsalans opened this issue Nov 9, 2021 · 1 comment
Open

Unusual reaction with pjax (Content is duplciating) #732

marsalans opened this issue Nov 9, 2021 · 1 comment

Comments

@marsalans
Copy link

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
Copy link
Author

anybody there ? is this project abandoned ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant