fixes single-line inputs and textboxes squished when saving

21cdf4932269441f7e51215bb1139e9e34ab2dde

khanon <khoners@protonmail.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/instruct-mode.js+1 -1
@@ -100,7 +100,7 @@ export async function loadInstructMode(data) {
100100
101 $element.on('input', async function () {101 $element.on('input', async function () {
102 power_user.instruct[control.property] = control.isCheckbox ? !!$(this).prop('checked') : $(this).val();102 power_user.instruct[control.property] = control.isCheckbox ? !!$(this).prop('checked') : $(this).val();
103 if (!CSS.supports('field-sizing', 'content')) {103 if (!CSS.supports('field-sizing', 'content') && $(this).is('textarea')) {
104 await resetScrollHeight($(this));104 await resetScrollHeight($(this));
105 }105 }
106 saveSettingsDebounced();106 saveSettingsDebounced();