diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-20 11:27:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 11:27:05 -0500 |
commit | 113e3b68b8c8399e0899740a52cc7fa3b38658cc (patch) | |
tree | a2fc3d89938f09034ebfe9e62b732bf3602633c0 /ext/bg/js/settings/anki-controller.js | |
parent | 6d7eefa9df0fbb6fe04b2e417aed78ac25c88541 (diff) |
Improve styles for invalid inputs (#1143)
Diffstat (limited to 'ext/bg/js/settings/anki-controller.js')
-rw-r--r-- | ext/bg/js/settings/anki-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/anki-controller.js b/ext/bg/js/settings/anki-controller.js index 541916b7..77b4ce96 100644 --- a/ext/bg/js/settings/anki-controller.js +++ b/ext/bg/js/settings/anki-controller.js @@ -535,7 +535,7 @@ class AnkiCardController { const fieldNamesSet = new Set(fieldNames); let index = 0; for (const [fieldName, {fieldNameContainerNode}] of fieldMap.entries()) { - fieldNameContainerNode.dataset.isValid = `${fieldNamesSet.has(fieldName)}`; + fieldNameContainerNode.dataset.invalid = `${!fieldNamesSet.has(fieldName)}`; fieldNameContainerNode.dataset.orderMatches = `${index < fieldNames.length && fieldName === fieldNames[index]}`; ++index; } |