mirror of https://github.com/node-red/node-red.git
Fix tooltip snapping based on input type
parent
854460db56
commit
e1b591d761
|
@ -1581,7 +1581,8 @@
|
|||
if (tooltip) {
|
||||
tooltip.setContent(valid);
|
||||
} else {
|
||||
tooltip = RED.popover.tooltip(this.elementDiv, valid);
|
||||
const target = this.typeMap[type]?.options ? this.optionSelectLabel : this.elementDiv;
|
||||
tooltip = RED.popover.tooltip(target, valid);
|
||||
this.element.data("tooltip", tooltip);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue