Use floating label with dropdown

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
maj-consulting
Posts: 1
Joined: 20 Mar 2020, 15:39

19 Sep 2020, 17:13

Hello,
I am unable to use the floating label with the dropdown (https://github.com/primefaces/primeng/issues/4578).
This prevent me to have a consistent view of my form.
Is it a bug? Or a misuse of the dropdown?
Thanks.

Code: Select all

<form [formGroup]="baziFormModel" (ngSubmit)="onSubmit()" >
            <div class="ui-g-12 ui-md-12">
            <span class="md-inputfield">
              <input id="name" pInputText type="text" formControlName="name">
              <label for="name">Nom et Prénom</label>
            </span>
            </div>

            <div class="ui-g-12 ui-md-12">
              <span class="md-inputfield">
                <p-dropdown id="genre" [options]="genders" formControlName="gender"></p-dropdown>
                <label>Genre</label>
              </span>
            </div>
          </form>

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Oct 2020, 03:03

Hi,

Sorry for the delayed response! Please see our demo page;
https://primefaces.org/primeng/showcase/#/floatlabel

Best Regards,

Post Reply

Return to “Barcelona - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests