Fixes media editor text color selection prior to entering text
This commit is contained in:
parent
9f0ea1cbf7
commit
7fb23a1f6d
1 changed files with 4 additions and 0 deletions
|
@ -439,9 +439,13 @@ export const MediaEditor = ({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { isEditing } = obj;
|
||||||
obj.exitEditing();
|
obj.exitEditing();
|
||||||
obj.set(getTextStyleAttributes(textStyle, sliderValue));
|
obj.set(getTextStyleAttributes(textStyle, sliderValue));
|
||||||
fabricCanvas.requestRenderAll();
|
fabricCanvas.requestRenderAll();
|
||||||
|
if (isEditing) {
|
||||||
|
obj.enterEditing();
|
||||||
|
}
|
||||||
}, [fabricCanvas, sliderValue, textStyle]);
|
}, [fabricCanvas, sliderValue, textStyle]);
|
||||||
|
|
||||||
// Create the CroppingRect
|
// Create the CroppingRect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue