Fixes media editor text color selection prior to entering text
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user