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;
|
||||
}
|
||||
|
||||
const { isEditing } = obj;
|
||||
obj.exitEditing();
|
||||
obj.set(getTextStyleAttributes(textStyle, sliderValue));
|
||||
fabricCanvas.requestRenderAll();
|
||||
if (isEditing) {
|
||||
obj.enterEditing();
|
||||
}
|
||||
}, [fabricCanvas, sliderValue, textStyle]);
|
||||
|
||||
// Create the CroppingRect
|
||||
|
|
Loading…
Add table
Reference in a new issue