diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 8a4aab252..e42ef4c6b 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -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.closest('.regex-highlight')).text(); + const key = $(target.closest('.regex-highlight, .item')).text(); console.debug('Editing WI key', key); // Remove the current key from the actual selection