From 12e1ece64b4df98b3f8fe15ef0e4790cdea283f8 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 25 Sep 2019 18:56:54 +0200 Subject: [PATCH] fix: byLabel crashing in IE 11 --- src/queries/label-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queries/label-text.js b/src/queries/label-text.js index 9b9ba908..3669db20 100644 --- a/src/queries/label-text.js +++ b/src/queries/label-text.js @@ -21,7 +21,7 @@ function queryAllLabelsByText( // The children of a textarea are part of `textContent` as well. We // need to remove them from the string so we can match it afterwards. - label.querySelectorAll('textarea').forEach(textarea => { + Array.from(label.querySelectorAll('textarea')).forEach(textarea => { textToMatch = textToMatch.replace(textarea.value, '') })