Update ESLint rules (#2342)

This commit is contained in:
Lipis
2020-11-06 22:06:30 +02:00
committed by GitHub
parent 56938cf874
commit e05acd6fd9
15 changed files with 107 additions and 101 deletions

View File

@ -78,11 +78,9 @@ const Picker = ({
colorInput.current?.focus();
event.preventDefault();
}
} else {
if (activeElement === colorInput.current) {
firstItem.current?.focus();
event.preventDefault();
}
} else if (activeElement === colorInput.current) {
firstItem.current?.focus();
event.preventDefault();
}
} else if (
event.key === KEYS.ARROW_RIGHT ||