Unfortunately, representable is broken when passing null values into the parsing representer. This will result in `property :foo` to be output as `{ foo: nil }` despite having a reader that writes other stuff.pull/7756/head
parent
0de87d3420
commit
42d34a56c3
@ -1,20 +1,22 @@ |
||||
<ng-select [items]="availableStatuses" |
||||
[(ngModel)]="resource['status']" |
||||
bindLabel="name" |
||||
bindValue="value" |
||||
class="project-status" |
||||
(open)="onOpen()" |
||||
(close)="onClose()" |
||||
(change)="handler.handleUserSubmit()" |
||||
[appendTo]="hiddenOverflowContainer" |
||||
[hideSelected]="true" |
||||
[disabled]="inFlight"> |
||||
<ng-template ng-label-tmp let-item="item"> |
||||
<span class="project-status--bulb" [ngClass]="item.colorClass"></span> |
||||
<span class="project-status--name" [ngClass]="item.colorClass">{{item.name}}</span> |
||||
</ng-template> |
||||
<ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm"> |
||||
<span class="project-status--bulb" [ngClass]="item.colorClass"></span> |
||||
<span class="project-status--name" [ngClass]="item.colorClass">{{item.name}}</span> |
||||
</ng-template> |
||||
</ng-select> |
||||
<div (keydown.escape)="handler.handleUserCancel()"> |
||||
<ng-select [items]="availableStatuses" |
||||
[(ngModel)]="resource.status" |
||||
bindLabel="name" |
||||
bindValue="value" |
||||
class="project-status" |
||||
(open)="onOpen()" |
||||
(close)="onClose()" |
||||
(change)="handler.handleUserSubmit()" |
||||
[appendTo]="hiddenOverflowContainer" |
||||
[hideSelected]="true" |
||||
[disabled]="inFlight"> |
||||
<ng-template ng-label-tmp let-item="item"> |
||||
<span class="project-status--bulb" [ngClass]="item.colorClass"></span> |
||||
<span class="project-status--name" [ngClass]="item.colorClass">{{item.name}}</span> |
||||
</ng-template> |
||||
<ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm"> |
||||
<span class="project-status--bulb" [ngClass]="item.colorClass"></span> |
||||
<span class="project-status--name" [ngClass]="item.colorClass">{{item.name}}</span> |
||||
</ng-template> |
||||
</ng-select> |
||||
</div> |
Loading…
Reference in new issue