Merge pull request #2790 from khanonnie/fix-input-checkbox-squish

This commit is contained in:
Cohee 2024-09-06 09:55:54 +03:00 committed by GitHub
commit c7af3d826e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();