Search bar and pagination show twice ?

Search bar and pagination show twice ?

safi_okzsafi_okz Posts: 4Questions: 3Answers: 0
edited November 2022 in Free community support

When I show datatable on click first time it's ok. but when I leave the page then came again then I show twice.

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    You are almost certainly running DataTables on a table that has been read from the document as HTML and then written back to it. That means the table node is no longer the same node, and DataTables doesn't know that it is meant to be the same element (since it isn't).

    Without a test case though, which we ask for in the forum rules and in the new post template text, I can't say way it is happening in this case. Perhaps you are using React and it is rewriting the document?

    Allan

  • safi_okzsafi_okz Posts: 4Questions: 3Answers: 0

    Allan I am using Vue 3.

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Are you using the DataTables component for Vue?

    There is still no test case, so it's really hard to say why something isn't working. You need to give me more information :)

    Allan

Sign In or Register to comment.