mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-07 15:55:00 +00:00
fix: only trigger change from button
This commit is contained in:
parent
1f4d260c6a
commit
abce214ced
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
function setValue(event: MouseEvent) {
|
||||
const element = event.target as HTMLDivElement;
|
||||
const button = element.parentElement;
|
||||
if (button) {
|
||||
if (button instanceof HTMLButtonElement) {
|
||||
let position = button.dataset.position! as ReferencePoint;
|
||||
onvalue?.(position);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue