This commit is contained in:
Cory LaViska
2024-05-10 11:13:11 -04:00
committed by GitHub
parent d478ccb2da
commit 8726910160
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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));
}
}