Merge pull request #5051 from GogoVega/typedInput-tooltip

Fix tooltip snapping based on `typedInput` type
This commit is contained in:
Nick O'Leary
2025-02-14 16:26:52 +00:00
committed by GitHub

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