should look for both .regex-highlight and .item for plaintext

This commit is contained in:
LenAnderson 2024-09-04 21:44:37 -04:00
parent f262eb256a
commit c6404a6401
1 changed files with 1 additions and 1 deletions

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