mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
c93b0f6ace
commit
efa4192278
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ export const bindCardEvent = async (options: {
|
|||
}
|
||||
options.element.setAttribute("data-key", Constants.DIALOG_OPENCARD);
|
||||
const actionElements = options.element.querySelectorAll(".card__action");
|
||||
if (options.index === 0) {
|
||||
if (options.index === 0 || typeof options.index === "undefined") {
|
||||
actionElements[0].firstElementChild.setAttribute("disabled", "disabled");
|
||||
} else {
|
||||
actionElements[0].firstElementChild.removeAttribute("disabled");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue