Skip to content

Commit abce214

Browse files
gitbutler-clientsm17p
authored andcommitted
fix: only trigger change from button
1 parent 1f4d260 commit abce214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/widgets/inputs/ReferencePointInput.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
function setValue(event: MouseEvent) {
1313
const element = event.target as HTMLDivElement;
1414
const button = element.parentElement;
15-
if (button) {
15+
if (button instanceof HTMLButtonElement) {
1616
let position = button.dataset.position! as ReferencePoint;
1717
onvalue?.(position);
1818
}

0 commit comments

Comments
 (0)