fixes single-line inputs and textboxes squished when saving

This commit is contained in:
khanon 2024-09-06 01:19:43 +00:00
parent e3f4b554c7
commit 21cdf49322
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export async function loadInstructMode(data) {
$element.on('input', async function () {
power_user.instruct[control.property] = control.isCheckbox ? !!$(this).prop('checked') : $(this).val();
if (!CSS.supports('field-sizing', 'content')) {
if (!CSS.supports('field-sizing', 'content') && $(this).is('textarea')) {
await resetScrollHeight($(this));
}
saveSettingsDebounced();