From 0619552dbbd41e9248997c83340e3cf4c3dff57b Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Wed, 4 Sep 2024 11:04:18 -0400 Subject: [PATCH] fix WI fancy key click target --- public/scripts/world-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index abb559d64..8a4aab252 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).text(); + const key = $(target.closest('.regex-highlight')).text(); console.debug('Editing WI key', key); // Remove the current key from the actual selection