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