fix(temperature): prevent id duplicates

Fixes #2148
This commit is contained in:
Sergey Andrievskiy 2019-06-30 15:08:44 +03:00
parent 1e64e6b6e3
commit 8618446f65

View file

@ -11,6 +11,7 @@ import {
} from '@angular/core';
import { Location, LocationStrategy } from '@angular/common';
let uniqueId = 0;
const VIEW_BOX_SIZE = 300;
@Component({
@ -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;