-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kie-issues#130: chrome-extension: Kogito icon is not working correctly after using the browser "back" #2134
Conversation
export function cleanupDuplicateElements(id: string, selectors: string[]) { | ||
selectors.forEach((selector) => { | ||
Array.from(document.querySelectorAll(`.${selector}.${id}`)).forEach((e) => { | ||
removeAllChildren(e); | ||
}); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this function is receiving classes and building a selector in a strictly way. You could improve this function by building the selectors before passing it down to the function. This way the caller can pass down a different selector if required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point thanks Luiz, will update it accordingly
After merging with main, the fix no longer works due to a bug apache/incubator-kie-issues#899. Probably best not to merge until the bug is resolved. |
may I ask you to include me into reviewers once ready? I would like to doble check effect of the changes for the different github instances |
Closing due to inactivity. |
closes apache/incubator-kie-issues#130
Blocked by: