We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e72e9b commit 76a71e0Copy full SHA for 76a71e0
src/json-crdt-peritext-ui/plugins/toolbar/formatting/FormattingsManagePane/index.tsx
@@ -28,7 +28,7 @@ export const FormattingsManagePane: React.FC<FormattingsManagePaneProps> = ({inl
28
<context.Provider value={state}>
29
<FormattingDisplay
30
formatting={selected || formattings[0]}
31
- onClose={!selected ? void 0 : () => state.select(null)}
+ onClose={!selected || (formattings.length === 1) ? void 0 : () => state.select(null)}
32
/>
33
</context.Provider>
34
);
0 commit comments