mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix WI fancy key click target
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user