mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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