goetzrobin / spartan

Cutting-edge tools powering Angular full-stack development.
https://spartan.ng
MIT License
1.13k stars 123 forks source link

Why Isn't the Select Element Displaying the Initial Value of the 'Frequency' Property? #189

Closed wizardnet972 closed 4 months ago

wizardnet972 commented 4 months ago

Please provide the environment you discovered this bug in.

source code / storybook

Which area/package is the issue in?

select

Description

The initial setup of the component fails to display the value of the property frequency in the select element, even though the property is bound to the ngModel directive.

<hlm-select class="inline-block" [(ngModel)]="frequency">
  <hlm-select-trigger class="w-56">
    <hlm-select-value />
  </hlm-select-trigger>
  <hlm-select-content class="w-56">
    <hlm-option *ngFor="let freq of frequencies" [value]="freq.value">{{ freq.label }}</hlm-option>
  </hlm-select-content>
</hlm-select>

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

wizardnet972 commented 4 months ago

I closed it because it's related to issue #188