Skip to content

Commit

Permalink
Call method on correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Oct 14, 2024
1 parent b05658d commit 79bb507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/MapView/LayerControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class LayerControl implements IControl {
const input = i as HTMLInputElement;
input.checked = groupInput.checked;
const event = new Event('change');
i.dispatchEvent(event);
input.dispatchEvent(event);
});
};
groupInput.type = 'checkbox';
Expand Down

0 comments on commit 79bb507

Please sign in to comment.