Skip to content

Commit

Permalink
Fix SyntaxError
Browse files Browse the repository at this point in the history
Without the quotes in safari you get the following error: SyntaxError: The string did not match the expected pattern.
  • Loading branch information
Jacob Reid committed Jan 5, 2021
1 parent 17720d0 commit 1e9be28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/gestures.js
Expand Up @@ -147,7 +147,7 @@ function matchingLabels(el) {
let root = el.getRootNode();
// if there is an id on `el`, check for all labels with a matching `for` attribute
if (el.id) {
let matching = root.querySelectorAll(`label[for = ${el.id}]`);
let matching = root.querySelectorAll(`label[for = '${el.id}']`);
for (let i = 0; i < matching.length; i++) {
labels.push(/** @type {!HTMLLabelElement} */(matching[i]));
}
Expand Down

0 comments on commit 1e9be28

Please sign in to comment.