Re-enable autofit height on plaintext key input
This commit is contained in:
parent
eb57289b2a
commit
a94af2678b
|
@ -1578,13 +1578,14 @@ function getWorldEntry(name, data, entry) {
|
||||||
});
|
});
|
||||||
input.val(entry[entryPropName].join(', ')).trigger('input', { skipReset: true });
|
input.val(entry[entryPropName].join(', ')).trigger('input', { skipReset: true });
|
||||||
}
|
}
|
||||||
|
return { isFancy: isFancyInput, control: input };
|
||||||
}
|
}
|
||||||
|
|
||||||
// key
|
// key
|
||||||
enableKeysInput('key', 'keys');
|
const keyInput = enableKeysInput('key', 'keys');
|
||||||
|
|
||||||
// keysecondary
|
// keysecondary
|
||||||
enableKeysInput('keysecondary', 'secondary_keys');
|
const keySecondaryInput = enableKeysInput('keysecondary', 'secondary_keys');
|
||||||
|
|
||||||
// draw key input switch button
|
// draw key input switch button
|
||||||
template.find('.switch_input_type_icon').on('click', function () {
|
template.find('.switch_input_type_icon').on('click', function () {
|
||||||
|
@ -1792,8 +1793,8 @@ function getWorldEntry(name, data, entry) {
|
||||||
if (counter.data('first-run')) {
|
if (counter.data('first-run')) {
|
||||||
counter.data('first-run', false);
|
counter.data('first-run', false);
|
||||||
countTokensDebounced(counter, contentInput.val());
|
countTokensDebounced(counter, contentInput.val());
|
||||||
// initScrollHeight(keyInput);
|
if (!keyInput.isFancy) initScrollHeight(keyInput.control);
|
||||||
// initScrollHeight(keySecondaryInput);
|
if (!keySecondaryInput) initScrollHeight(keySecondaryInput.control);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue