mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
Merge pull request #2776 from LenAnderson/fix-fix-fancy-click-target
Fix the fix (fix fancy click target)
This commit is contained in:
commit
b44994a11d
@ -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.closest('.regex-highlight')).text();
|
const key = $(target.closest('.regex-highlight, .item')).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…
x
Reference in New Issue
Block a user