I have an angular application in where im using floating labels
when i first load the component (a p-dialog) the floating labels are "falling down" to the select as shown in the image

here is the code im using
<div class="ui-g-12">
<span class="ui-float-label">
<p-dropdown [options]="categories" formControlName="category" [style]="{ width: '100%' }"></p-dropdown>
<label>{{ 'products.category-name' | translate }}</label>
</span>
</div>
this form is generated using the formBuilder and what i noticed is that if i call form.reset(), then on the next time the module is rendered nicely. Im not sure what is the source of the problem any ideas?