Skip to content

Commit 02b1e2c

Browse files
fix: Block colors menu not always showing (#2027)
1 parent f0d6364 commit 02b1e2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/src/components/FormattingToolbar/DefaultButtons/ColorStyleButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ColorPicker } from "../../ColorPicker/ColorPicker.js";
1616

1717
function checkColorInSchema<Color extends "text" | "background">(
1818
color: Color,
19-
editor: BlockNoteEditor<BlockSchema, InlineContentSchema, StyleSchema>,
19+
editor: BlockNoteEditor<any, any, any>,
2020
): editor is BlockNoteEditor<
2121
BlockSchema,
2222
InlineContentSchema,

packages/react/src/components/SideMenu/DragHandleMenu/DefaultItems/BlockColorsItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const BlockColorsItem = <
3737
if (
3838
!blockHasType(block, editor, block.type, {
3939
textColor: "string",
40-
}) ||
40+
}) &&
4141
!blockHasType(block, editor, block.type, {
4242
backgroundColor: "string",
4343
})

0 commit comments

Comments
 (0)