From 4d2a05c8e45ebdbcfcc53821c04b0f23eba467fd Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 25 Oct 2022 10:03:50 +0300 Subject: [PATCH] disable autocomplete for form elements --- public/akaunting-js/generalAction.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index f76732771..db1d67d21 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -438,3 +438,9 @@ document.querySelectorAll('[data-index-icon]').forEach((defaultText) => { //disable/enable icons ejected from data-truncate-marquee //margue animation for truncated text + +//disable autocomplete for all form elements +document.querySelectorAll('input, textarea, select, textarea').forEach((element) => { + element.setAttribute('autocomplete', 'off'); +}); +//disable autocomplete for all form elements