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