Update EditUsers.plugin.js
This commit is contained in:
parent
aa4f8fb9fe
commit
9ab8f1bf29
|
@ -855,8 +855,10 @@ class EditUsers {
|
|||
changeTooltip (info, wrapper, type) {
|
||||
if (!info || !wrapper || !wrapper.parentElement) return;
|
||||
let data = this.getUserData(info.id, wrapper);
|
||||
wrapper = BDFDB.containsClass(wrapper, BDFDB.disCN.guildicon) ? wrapper.parentElement.parentElement.parentElement : wrapper;
|
||||
wrapper.removeEventListener("mouseenter", wrapper.tooltipListenerEditUsers);
|
||||
if (data.name) {
|
||||
console.log(wrapper);
|
||||
wrapper.tooltipListenerEditUsers = () => {
|
||||
BDFDB.createTooltip(data.name, wrapper, {type,selector:"EditUsers-tooltip",css:`body ${BDFDB.dotCN.tooltip}:not(.EditUsers-tooltip) {display: none !important;}`});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue