We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bbee2d commit 355a4a5Copy full SHA for 355a4a5
2 files changed
src/bundle/toolbar/markup/MToolbarColors.tsx
@@ -10,6 +10,7 @@ export const MToolbarColors: React.FC<MToolbarColorsProps> = ({
10
focus,
11
onClick,
12
}) => {
13
+ // TODO: @makhnatkin check markup mode
14
return (
15
<ToolbarColors
16
enable
src/bundle/toolbar/wysiwyg/WToolbarColors.tsx
@@ -19,7 +19,7 @@ export const WToolbarColors: React.FC<WToolbarColorsProps> = ({
19
enable={action.isEnable()}
20
currentColor={currentColor}
21
exec={(color) => {
22
- action.run({color: color === currentColor ? '' : color});
+ action.run({color});
23
}}
24
disablePortal={disablePortal}
25
className={className}
0 commit comments