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
commit bf6b18b8a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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