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 () {
10727 if ($(e.target).hasClass('text_pole')) {10727 if ($(e.target).hasClass('text_pole')) {
10728 return;10728 return;
10729 }10729 }
10730 var icon = $(this).find('.inline-drawer-icon');10730 const drawer = $(this).closest('.inline-drawer');
10731 const icon = drawer.find('.inline-drawer-icon');
10732 const drawerContent = drawer.find('.inline-drawer-content');
10731 icon.toggleClass('down up');10733 icon.toggleClass('down up');
10732 icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up');10734 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({
10734 complete: () => {10736 complete: () => {
10735 $(this).css('height', '');10737 $(this).css('height', '');
10736 },10738 },
@@ -10738,7 +10740,7 @@ jQuery(async function () {
1073810740
10739 // Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height10741 // Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height
10740 if (!CSS.supports('field-sizing', 'content')) {10742 if (!CSS.supports('field-sizing', 'content')) {
10741 $(this).closest('.inline-drawer').find('.inline-drawer-content textarea.autoSetHeight').each(async function () {10743 drawerContent.find('textarea.autoSetHeight').each(async function () {
10742 await resetScrollHeight($(this));10744 await resetScrollHeight($(this));
10743 return;10745 return;
10744 });10746 });