mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-08 07:32:34 +01:00
fix WI fancy key click target
This commit is contained in:
parent
4cfce43e5d
commit
0619552dbb
@ -2334,7 +2334,7 @@ async function getWorldEntry(name, data, entry) {
|
|||||||
input.on('select2:unselect', /** @type {function(*):void} */ event => updateWorldEntryKeyOptionsCache([event.params.data], { remove: true }));
|
input.on('select2:unselect', /** @type {function(*):void} */ event => updateWorldEntryKeyOptionsCache([event.params.data], { remove: true }));
|
||||||
|
|
||||||
select2ChoiceClickSubscribe(input, target => {
|
select2ChoiceClickSubscribe(input, target => {
|
||||||
const key = $(target).text();
|
const key = $(target.closest('.regex-highlight')).text();
|
||||||
console.debug('Editing WI key', key);
|
console.debug('Editing WI key', key);
|
||||||
|
|
||||||
// Remove the current key from the actual selection
|
// Remove the current key from the actual selection
|
||||||
|
Loading…
Reference in New Issue
Block a user