Fix drawer icon not changing on WI

5d60897cfa4f57657ed556e0b1abe4d240fe86b2

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +5 -3Ignore whitespace
public/script.js+5 -3
@@ -10727,10 +10727,12 @@ jQuery(async function () {
1072710727 if ($(e.target).hasClass('text_pole')) {
1072810728 return;
1072910729 }
1073010730 varconst icondrawer = $(this).findclosest('.inline-drawer-icon');
10731+ const icon = drawer.find('.inline-drawer-icon');
10732+ const drawerContent = drawer.find('.inline-drawer-content');
1073110733 icon.toggleClass('down up');
1073210734 icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up');
10733- $(this).closest('.inline-drawer').find('.inline-drawer-content').stop().slideToggle({
10735+ drawerContent.stop().slideToggle({
1073410736 complete: () => {
1073510737 $(this).css('height', '');
1073610738 },
@@ -10738,7 +10740,7 @@ jQuery(async function () {
1073810740
1073910741 // Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height
1074010742 if (!CSS.supports('field-sizing', 'content')) {
1074110743 $(this).closest('.inline-drawer')drawerContent.find('.inline-drawer-content textarea.autoSetHeight').each(async function () {
1074210744 await resetScrollHeight($(this));
1074310745 return;
1074410746 });