Merge pull request #6 from Microsoft/users/aazhou/cleanup
Fix casting to number
This commit is contained in:
Коммит
3a60ca14eb
|
@ -68,7 +68,7 @@ export class View {
|
|||
}
|
||||
|
||||
private _inputChanged(): void {
|
||||
let newValue = $("input").val();
|
||||
let newValue = Number($("input").val());
|
||||
if (this.onInputChanged) {
|
||||
this.onInputChanged(newValue);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче