Disable autofocus on search field
Disable autofocus on search field
jmmacias
Posts: 2Questions: 1Answers: 0
Hi everyone,
We have a page with several datatables and, on loading, the page scrolls down to the last datatable because this has the focus on the search field.
So my question is, is it possible to disable the focus on the search field?
Thanks!
Answers
AFAIK Datatables doesn't set the focus to the search input. Try this example with two tables. There is no scrolling to the last table. Sounds like you might have some code setting the focus. Can you post a link to your page or a test case replicating the issue so we can help debug?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Sounds like some focusing code is hidding from me then
Thanks Kevin! Will keep haunting it!