Filter input autocompleting with saved username in Chrome - Page 2

Filter input autocompleting with saved username in Chrome

2»

Answers

  • kthorngrenkthorngren Posts: 20,322Questions: 26Answers: 4,774

    @andreitofan

    See my last two posts in this thread. Basically Chrome and maybe other browser's will auto-populate the first input field it finds. A good workaround seems to be to place a dummy/hidden input field at the top of the page and this will be populated instead of the Datatables search input.

    Kevin

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    I found out a little while ago that they starting doing this nonsense as sites were abusing the autocomplete="false" attribute, attempting to disallow password managers for filling in the user's details for them. So to benefit the users, they ignore that attribute. This looks like an unindented consequence.

    Allan

  • blackpyjacblackpyjac Posts: 1Questions: 0Answers: 0

    Hello I found the following solution that works in Chrome march 2024

    initComplete: function() { $(this.api().table().container()).find('input').attr('autocomplete', 'off'); $(this.api().table().container()).find('input').val(''); },

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Super - thank you for the update.

    Allan

Sign In or Register to comment.