fix tooltip bug

pull/568/head
Cory LaViska 2021-10-14 09:01:37 -04:00
rodzic 3a3f5552a7
commit 8dba8fa5fb
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
## Next
- Added `label` attribute to `<sl-progress-bar>` and `<sl-progress-ring>` to improve a11y
- Fixed a bug where the tooltip would show briefly when clicking a disabled `<sl-range>`
- Updated to Bootstrap Icons to 1.6.0
## 2.0.0-beta.57

Wyświetl plik

@ -247,7 +247,7 @@ export default class SlRange extends LitElement {
@focus=${this.handleFocus}
@blur=${this.handleBlur}
/>
${this.tooltip !== 'none'
${this.tooltip !== 'none' && !this.disabled
? html` <output part="tooltip" class="range__tooltip"> ${this.tooltipFormatter(this.value)} </output> `
: ''}
</div>