diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 87690312f..c545c3b73 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -14,6 +14,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Fixed a bug in `` where the divider was on the wrong side when using `placement="end"` - Fixed a bug in `` that caused nested tab groups to scroll when using `placement="start|end"` [#815](https://github.com/shoelace-style/shoelace/issues/815) - Fixed a bug in `` that caused the target to be lost after a slot change [#831](https://github.com/shoelace-style/shoelace/pull/831) +- Fixed a bug in `` that caused the position to be incorrect on the first show when using `hoist` - Improved accessibility of ``, ``, and `` to announce better in screen readers and by allowing focus on disabled items - Improved accessibility of `` and `` by allowing focus on disabled items - Updated Bootstrap Icons to 1.9.1 diff --git a/src/components/tooltip/tooltip.ts b/src/components/tooltip/tooltip.ts index 92742d454..34948f661 100644 --- a/src/components/tooltip/tooltip.ts +++ b/src/components/tooltip/tooltip.ts @@ -268,7 +268,7 @@ export default class SlTooltip extends LitElement { private startPositioner() { this.stopPositioner(); - this.updatePositioner(); + requestAnimationFrame(() => this.updatePositioner()); this.positionerCleanup = autoUpdate(this.target, this.positioner, this.updatePositioner.bind(this)); }