diff --git a/Tool/animate.js b/Tool/animate.js index 27a7f95..69149f8 100644 --- a/Tool/animate.js +++ b/Tool/animate.js @@ -6,6 +6,6 @@ export function animate(event, classname) { event.classList.add(classname); event.addEventListener('animationend', (event) => { - event.classList.remove(classname); // 清洗动画 + event.target.classList.remove(classname); // 清洗动画 }); } diff --git a/package-lock.json b/package-lock.json index af78296..073ba96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ddmt-tool", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ddmt-tool", - "version": "1.0.2", + "version": "1.0.3", "license": "ISC", "dependencies": { "ddmt-tool": "file:" diff --git a/package.json b/package.json index 30cf38e..5826785 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ddmt-tool", - "version": "1.0.2", + "version": "1.0.3", "description": "ddmt-tool", "main": "index.js", "type": "module",