mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Fixed TooltipManager setAnchor erroring when no options were sent in
This commit is contained in:
parent
13185bf28e
commit
f11d5f98dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue