mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
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 });
|
||||
}
|
||||
return { isFancy: isFancyInput, control: input };
|
||||
}
|
||||
|
||||
// key
|
||||
enableKeysInput('key', 'keys');
|
||||
const keyInput = enableKeysInput('key', 'keys');
|
||||
|
||||
// keysecondary
|
||||
enableKeysInput('keysecondary', 'secondary_keys');
|
||||
const keySecondaryInput = enableKeysInput('keysecondary', 'secondary_keys');
|
||||
|
||||
// draw key input switch button
|
||||
template.find('.switch_input_type_icon').on('click', function () {
|
||||
@ -1792,8 +1793,8 @@ function getWorldEntry(name, data, entry) {
|
||||
if (counter.data('first-run')) {
|
||||
counter.data('first-run', false);
|
||||
countTokensDebounced(counter, contentInput.val());
|
||||
// initScrollHeight(keyInput);
|
||||
// initScrollHeight(keySecondaryInput);
|
||||
if (!keyInput.isFancy) initScrollHeight(keyInput.control);
|
||||
if (!keySecondaryInput) initScrollHeight(keySecondaryInput.control);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user