diff --git a/src/components/range/range.ts b/src/components/range/range.ts index 53d58fba9..995bb1dae 100644 --- a/src/components/range/range.ts +++ b/src/components/range/range.ts @@ -80,7 +80,7 @@ export default class SlRange extends LitElement { connectedCallback() { super.connectedCallback(); - this.handleSlotChange = this.handleSlotChange.bind(this); + this.handleSlotChange = this.handleSlotChange; this.resizeObserver = new ResizeObserver(() => this.syncTooltip()); this.shadowRoot!.addEventListener('slotchange', this.handleSlotChange); @@ -193,7 +193,7 @@ export default class SlRange extends LitElement { 'range--tooltip-top': this.tooltip === 'top', 'range--tooltip-bottom': this.tooltip === 'bottom' })} - @touchstart=${this.handleTouchStart.bind(this)} + @touchstart=${this.handleTouchStart} > ${this.tooltip !== 'none' ? html` ${this.tooltipFormatter(this.value)} `