Skip to content

Commit dfcf6cd

Browse files
github-actions[bot]shawnbotskinnylatte
authored
Release 9.2.6 (#220)
* bump v9.2.6 * fix(patch): bail in patchAriaInvalid() w/o input reference Co-authored-by: shawnbot <shawnbot@users.noreply.github.com> Co-authored-by: Adrianna Tan <2878228+skinnylatte@users.noreply.github.com>
1 parent 91d6208 commit dfcf6cd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "formio-sfds",
3-
"version": "9.2.5",
3+
"version": "9.2.6",
44
"description": "The Form.io theme for sf.gov",
55
"module": "src/index.js",
66
"browser": "dist/formio-sfds.standalone.js",

src/patch.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,10 @@ function patchAriaInvalid (Formio) {
438438
setErrorClasses(elements, ...rest)
439439
for (const el of elements) {
440440
const input = this.performInputMapping(el)
441-
const invalid = input.classList.contains('is-invalid')
442-
input.setAttribute('aria-invalid', invalid)
441+
if (input) {
442+
const invalid = input.classList.contains('is-invalid')
443+
input.setAttribute('aria-invalid', invalid)
444+
}
443445
}
444446
})
445447
}

0 commit comments

Comments
 (0)