From d53824517848d3c9d0752fdb4fc0ef66db5e0ae0 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Fri, 3 Mar 2017 23:56:59 +0100 Subject: [PATCH] fix(range): knob B can only be actived if range is dual --- src/components/range/range.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/range/range.ts b/src/components/range/range.ts index eaf95c33c7..3a9cd5b68f 100644 --- a/src/components/range/range.ts +++ b/src/components/range/range.ts @@ -368,7 +368,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O // figure out which knob they started closer to const ratio = clamp(0, (current.x - rect.left) / (rect.width), 1); - this._activeB = (Math.abs(ratio - this._ratioA) > Math.abs(ratio - this._ratioB)); + this._activeB = this._dual && (Math.abs(ratio - this._ratioA) > Math.abs(ratio - this._ratioB)); // update the active knob's position this._update(current, rect, true);