Pārlūkot izejas kodu

Update textWysiwyg.tsx

zsviczian 3 gadi atpakaļ
vecāks
revīzija
531829d95e
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/element/textWysiwyg.tsx

+ 4 - 1
src/element/textWysiwyg.tsx

@@ -564,7 +564,10 @@ export const textWysiwyg = ({
         });
         handleSubmit();
       };
-      if (target && isTargetColorPicker) {
+      if (
+        target &&
+        (isTargetColorPicker || isShapeActionsPanel)
+      ) {
         target.onblur = () => {
           editable.focus();
         };