Vanessa 2024-03-15 23:48:15 +08:00
parent 9e731908e2
commit dab89c39fa

View file

@ -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);
}
});