Fix tooltip snapping based on input type

This commit is contained in:
GogoVega 2025-02-13 13:59:06 +01:00
parent 854460db56
commit e1b591d761
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -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);
}
}