mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-22 07:26:23 +01:00
Only auto-select preset on full name match
This commit is contained in:
parent
d9f9da99e6
commit
51af830db8
@ -114,7 +114,9 @@ class PresetManager {
|
|||||||
* @returns {any} Preset value
|
* @returns {any} Preset value
|
||||||
*/
|
*/
|
||||||
findPreset(name) {
|
findPreset(name) {
|
||||||
return $(this.select).find(`option:contains(${name})`).val();
|
return $(this.select).find('option').filter(function() {
|
||||||
|
return $(this).text() === name;
|
||||||
|
}).val();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user