Skip to content

Commit a401bb5

Browse files
eps1lonKent C. Dodds
authored andcommitted
fix: byLabel crashing in IE 11 (#363)
1 parent dbbea6e commit a401bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/queries/label-text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function queryAllLabelsByText(
2121

2222
// The children of a textarea are part of `textContent` as well. We
2323
// need to remove them from the string so we can match it afterwards.
24-
label.querySelectorAll('textarea').forEach(textarea => {
24+
Array.from(label.querySelectorAll('textarea')).forEach(textarea => {
2525
textToMatch = textToMatch.replace(textarea.value, '')
2626
})
2727

0 commit comments

Comments
 (0)