1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-15 04:44:05 +00:00

Disable spellcheck and autocomplete on all inputs

This commit is contained in:
2023-07-21 21:49:29 +02:00
parent 3ca561b4b4
commit d677b825e1
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,9 @@ export default function input(node, { autofocus, type, onValid, onInvalid, manda
mandatory: false,
}) {
node.setAttribute('spellcheck', false);
node.setAttribute('autocomplete', false);
const getMessage = () => {
const checkInteger = () => (isInt(node.value) ? false : 'Value must be an integer');
const checkNumberBoundaries = boundaries => {