mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
9e731908e2
commit
dab89c39fa
1 changed files with 7 additions and 1 deletions
|
|
@ -565,7 +565,13 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
if (key === Constants.CUSTOM_RIFF_DECKS && data.new[Constants.CUSTOM_RIFF_DECKS] !== data.old[Constants.CUSTOM_RIFF_DECKS]) {
|
||||
item.style.animation = "addCard 450ms linear";
|
||||
setTimeout(() => {
|
||||
item.style.animation = "";
|
||||
if (item.parentElement) {
|
||||
item.style.animation = "";
|
||||
} else {
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`).forEach((realItem: HTMLElement) => {
|
||||
realItem.style.animation = "";
|
||||
})
|
||||
}
|
||||
}, 450);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue