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

fix WI fancy key click target
This commit is contained in:
Cohee 2024-09-04 18:13:00 +03:00 committed by GitHub
commit 642b409c0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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