fix WI fancy key click target

This commit is contained in:
LenAnderson 2024-09-04 11:04:18 -04:00
parent 4cfce43e5d
commit 0619552dbb

View File

@ -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