Skip to content

Commit

Permalink
fix(temperature): prevent id duplicates
Browse files Browse the repository at this point in the history
Fixes #2148
  • Loading branch information
yggg committed Jun 30, 2019
1 parent 1e64e6b commit 8618446
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '@angular/core';
import { Location, LocationStrategy } from '@angular/common';

let uniqueId = 0;
const VIEW_BOX_SIZE = 300;

@Component({
Expand Down Expand Up @@ -63,7 +64,7 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
off = false;
oldValue: number;

svgControlId = new Date().getTime();
svgControlId = uniqueId++;
scaleFactor = 1;
bottomAngleRad = 0;
radius = 100;
Expand Down

0 comments on commit 8618446

Please sign in to comment.