Skip to content

Commit

Permalink
fix(geometry): fix geometry form field drawGuide and geometryType model
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget authored and mbarbeau committed Sep 30, 2019
1 parent 20de362 commit b95789d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div *ngIf="geometryTypeField" class="geometry-type-toggle">
<mat-button-toggle-group
[disabled]="(value$ | async) !== undefined"
[ngModel]="geometryType">
[(ngModel)]="geometryType">
<mat-button-toggle
value="Point"
[disabled]="geometryTypes.indexOf('Point') < 0">
Expand All @@ -35,7 +35,7 @@
matInput
type="number"
[placeholder]="drawGuidePlaceholder"
[ngModel]="drawGuide">
[(ngModel)]="drawGuide">
<mat-icon
matPrefix
[color]="'primary'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class GeometryFormFieldComponent implements OnInit, OnDestroy {
set drawGuide(value: number) { this.drawGuide$.next(value); }
get drawGuide(): number { return this.drawGuide$.value; }
readonly drawGuide$: BehaviorSubject<number> = new BehaviorSubject(0);

/**
* Draw guide placeholder
*/
Expand Down

0 comments on commit b95789d

Please sign in to comment.