Skip to content

Commit 9d326d1

Browse files
fix(polyfill): correct labels reference
1 parent 3bcaed9 commit 9d326d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const initLabels = (ref, labels) => {
5151
if (labels.length) {
5252
Array.from(labels).forEach(label =>
5353
label.addEventListener('click', ref.focus.bind(ref)));
54-
let firstLabelId = label[0].id;
54+
let firstLabelId = labels[0].id;
5555
if (!labels[0].id) {
5656
firstLabelId = `${labels[0].htmlFor}_Label`;
5757
labels[0].id = firstLabelId;

0 commit comments

Comments
 (0)