Merge pull request #2772 from LenAnderson/fix-fancy-click-target fix WI fancy key click target

642b409c0f12761960d7220dbc86bd506e448730

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Showing whitespace changes
public/scripts/world-info.js+1 -1
@@ -2334,7 +2334,7 @@ async function getWorldEntry(name, data, entry) {
2334 input.on('select2:unselect', /** @type {function(*):void} */ event => updateWorldEntryKeyOptionsCache([event.params.data], { remove: true }));2334 input.on('select2:unselect', /** @type {function(*):void} */ event => updateWorldEntryKeyOptionsCache([event.params.data], { remove: true }));
23352335
2336 select2ChoiceClickSubscribe(input, target => {2336 select2ChoiceClickSubscribe(input, target => {
2337 const key = $(target).text();2337 const key = $(target.closest('.regex-highlight')).text();
2338 console.debug('Editing WI key', key);2338 console.debug('Editing WI key', key);
23392339
2340 // Remove the current key from the actual selection2340 // Remove the current key from the actual selection