Fixed TooltipManager setAnchor erroring when no options were sent in

This commit is contained in:
WBHarry 2026-03-16 01:19:54 +01:00
parent 13185bf28e
commit f11d5f98dd

View file

@ -224,7 +224,7 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti
if (locked || element.dataset.hasOwnProperty('locked')) this.lockTooltip(); if (locked || element.dataset.hasOwnProperty('locked')) this.lockTooltip();
} }
_setAnchor(direction, options) { _setAnchor(direction, options = {}) {
const directions = this.constructor.TOOLTIP_DIRECTIONS; const directions = this.constructor.TOOLTIP_DIRECTIONS;
const pad = this.constructor.TOOLTIP_MARGIN_PX; const pad = this.constructor.TOOLTIP_MARGIN_PX;
const pos = this.element.getBoundingClientRect(); const pos = this.element.getBoundingClientRect();