Browse Source

fix: add rotate class to SVG element

close #2205
Gerald 1 year ago
parent
commit
caf636011c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/options/views/tab-installed.vue

+ 1 - 1
src/options/views/tab-installed.vue

@@ -570,7 +570,7 @@ function handleActionToggle(script) {
  * @param {Element} [el]
  */
 async function handleActionUpdate(what, el) {
-  if (el) (el = (el.querySelector('svg') || el).classList).add('rotate');
+  if (el) (el = (el.querySelector('svg') || el.closest('svg') || el).classList).add('rotate');
   await sendCmdDirectly('CheckUpdate', what && ensureArray(what).map(s => s.props.id));
   el?.remove('rotate');
 }