mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Disable autocorrect in search boxes
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
This commit is contained in:
@@ -170,4 +170,12 @@ $(document).ready(function() {
|
||||
"defaultContent": ""
|
||||
} ]
|
||||
});
|
||||
// Disable autocorrect in the search box
|
||||
const inputs = document.querySelectorAll('input[type=search]');
|
||||
inputs.forEach(input => {
|
||||
input.setAttribute('autocomplete', 'off')
|
||||
input.setAttribute('autocorrect', 'off')
|
||||
input.setAttribute('autocapitalize', 'off')
|
||||
input.setAttribute('spellcheck', false)
|
||||
})
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user