Skip to content

Commit 355a4a5

Browse files
committed
fix: added TODO comment
1 parent 5bbee2d commit 355a4a5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/bundle/toolbar/markup/MToolbarColors.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const MToolbarColors: React.FC<MToolbarColorsProps> = ({
1010
focus,
1111
onClick,
1212
}) => {
13+
// TODO: @makhnatkin check markup mode
1314
return (
1415
<ToolbarColors
1516
enable

src/bundle/toolbar/wysiwyg/WToolbarColors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const WToolbarColors: React.FC<WToolbarColorsProps> = ({
1919
enable={action.isEnable()}
2020
currentColor={currentColor}
2121
exec={(color) => {
22-
action.run({color: color === currentColor ? '' : color});
22+
action.run({color});
2323
}}
2424
disablePortal={disablePortal}
2525
className={className}

0 commit comments

Comments
 (0)