diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index 580304d514..c25bceacca 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -21,6 +21,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti - Fixed a bug in `` that may throw errors on `disconnectedCallback` in test environments [#1985] - Fixed a bug in `` that would log a non-passive event listener warning [#2005] - Fixed a bug in the submenu controller that allowed submenus to go offscreen and not be scrollable [#2001] +- Fixed a bug in `` that caused the tooltip position to be incorrect in some cases [#1979] ## 2.15.0 diff --git a/src/components/range/range.component.ts b/src/components/range/range.component.ts index a336ceeaf9..c00f196763 100644 --- a/src/components/range/range.component.ts +++ b/src/components/range/range.component.ts @@ -216,7 +216,8 @@ export default class SlRange extends ShoelaceElement implements ShoelaceFormCont this.syncProgress(percent); if (this.tooltip !== 'none') { - this.syncTooltip(percent); + // Ensure updates are drawn before we sync the tooltip + this.updateComplete.then(() => this.syncTooltip(percent)); } }