Skip to content

Commit

Permalink
fix tooltip bug
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Oct 14, 2021
1 parent 3a3f555 commit 8dba8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/range/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8dba8fa

Please sign in to comment.