Skip to content

Commit

Permalink
feat(design): add id property to quantity field to be passed into qua…
Browse files Browse the repository at this point in the history
…ntity select and quantity input (#2859)
  • Loading branch information
xelaint committed Jun 13, 2024
1 parent 6153b91 commit 2a18308
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<daff-quantity-select
*ngIf="showSelectField"
[min]="min" [max]="_maxFloor" [extendable]="max > selectMax">
[min]="min"
[max]="_maxFloor"
[extendable]="max > selectMax"
[id]="id">
</daff-quantity-select>
<daff-quantity-input
*ngIf="showInputField"
[min]="min" [max]="max">
[min]="min"
[max]="max"
[id]="id">
</daff-quantity-input>
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class DaffQuantityFieldComponent implements ControlValueAccessor, DaffFor
*/
@Input() selectMax = 10;

@Input() id = '';

get focused(): boolean {
return !!(this.input?.focused || this.select?.focused);
}
Expand Down

0 comments on commit 2a18308

Please sign in to comment.