mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
parent
3704345d02
commit
f2e8bebab2
5 changed files with 17 additions and 4 deletions
12
app/assets/javascripts/spell_check.js
Normal file
12
app/assets/javascripts/spell_check.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
(function() {
|
||||
function disableSpellCheck() {
|
||||
let selector = 'input[type=text], textarea';
|
||||
let textFields = document.querySelectorAll(selector);
|
||||
|
||||
for (let field of textFields) {
|
||||
field.spellcheck = false;
|
||||
}
|
||||
}
|
||||
|
||||
disableSpellCheck();
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue