This commit is contained in:
Vanessa 2022-05-30 11:17:32 +08:00
parent 1cdc80e1bd
commit a3aa3d537b
2 changed files with 2 additions and 2 deletions

View file

@ -886,7 +886,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
type: "separator"
});
}
if (!hasNone || (hasNone && !hasRowSpan && hasColSpan)) {
if ((!hasNone && !hasRowSpan) || (hasNone && !hasRowSpan && hasColSpan)) {
menus.push({
icon: "iconDeleteRow",
label: window.siyuan.languages["delete-row"],

View file

@ -576,7 +576,7 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range)
// 删除当前行
if (matchHotKey(window.siyuan.config.keymap.editor.table["delete-row"].custom, event)) {
if (!hasNone || (hasNone && !hasRowSpan && hasColSpan)) {
if ((!hasNone && !hasRowSpan) || (hasNone && !hasRowSpan && hasColSpan)) {
deleteRow(protyle, range, cellElement, nodeElement);
}
event.preventDefault();