mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update textWysiwyg.tsx
This commit is contained in:
parent
2e04bcd485
commit
ce27cb6159
1 changed files with 7 additions and 2 deletions
|
@ -543,7 +543,12 @@ export const textWysiwyg = ({
|
||||||
isWritableElement(target);
|
isWritableElement(target);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
editable.onblur = handleSubmit;
|
editable.onblur = () => {
|
||||||
|
app.setState({
|
||||||
|
toastMessage: "debug: onblur",
|
||||||
|
});
|
||||||
|
handleSubmit();
|
||||||
|
};
|
||||||
if (target && isTargetColorPicker) {
|
if (target && isTargetColorPicker) {
|
||||||
target.onblur = () => {
|
target.onblur = () => {
|
||||||
editable.focus();
|
editable.focus();
|
||||||
|
@ -576,7 +581,7 @@ export const textWysiwyg = ({
|
||||||
isTargetColorPicker
|
isTargetColorPicker
|
||||||
) {
|
) {
|
||||||
app.setState({
|
app.setState({
|
||||||
toastMessage: "debug",
|
toastMessage: "debug: onPointerDown",
|
||||||
});
|
});
|
||||||
editable.onblur = null;
|
editable.onblur = null;
|
||||||
window.addEventListener("pointerup", bindBlurEvent);
|
window.addEventListener("pointerup", bindBlurEvent);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue