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

View File

@@ -1581,7 +1581,8 @@
if (tooltip) { if (tooltip) {
tooltip.setContent(valid); tooltip.setContent(valid);
} else { } 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); this.element.data("tooltip", tooltip);
} }
} }