Skip to content

Commit

Permalink
fixes #1979 (#2008)
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed May 10, 2024
1 parent d478ccb commit 8726910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/resources/changelog.md
Expand Up @@ -21,6 +21,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Fixed a bug in `<sl-textarea>` that may throw errors on `disconnectedCallback` in test environments [#1985]
- Fixed a bug in `<sl-color-picker>` 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 `<sl-range>` that caused the tooltip position to be incorrect in some cases [#1979]

## 2.15.0

Expand Down
3 changes: 2 additions & 1 deletion src/components/range/range.component.ts
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 8726910

Please sign in to comment.