mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
Disable Insert > Comment menu item when no text is selected (#26805)
GitOrigin-RevId: a5fdd662cd487359f9b09212a449d7831bb5dcac
This commit is contained in:
+2
@@ -177,6 +177,7 @@ export const useToolbarMenuBarEditorCommands = () => {
|
||||
handler: () => {
|
||||
commands.addComment()
|
||||
},
|
||||
disabled: state.selection.main.empty,
|
||||
},
|
||||
/************************************
|
||||
* Format menu
|
||||
@@ -286,6 +287,7 @@ export const useToolbarMenuBarEditorCommands = () => {
|
||||
newEditor,
|
||||
trackedWrite,
|
||||
isTeXFile,
|
||||
state.selection.main.empty,
|
||||
])
|
||||
|
||||
const { toggleSymbolPalette } = useEditorPropertiesContext()
|
||||
|
||||
Reference in New Issue
Block a user