Fix tool options bar number inputs not being applied before starting a drag with the tool (#1646)
Unfocus elements before control is passed to tool
This commit is contained in:
parent
9479abe114
commit
15ffdf73ca
|
|
@ -165,6 +165,9 @@
|
||||||
const onEditbox = e.target instanceof HTMLDivElement && e.target.contentEditable;
|
const onEditbox = e.target instanceof HTMLDivElement && e.target.contentEditable;
|
||||||
|
|
||||||
if (!onEditbox) viewport?.setPointerCapture(e.pointerId);
|
if (!onEditbox) viewport?.setPointerCapture(e.pointerId);
|
||||||
|
if (window.document.activeElement instanceof HTMLElement) {
|
||||||
|
window.document.activeElement.blur();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update rendered SVGs
|
// Update rendered SVGs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue