Label not working correctly with p-dropdown

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
predrag.crnogorac
Posts: 6
Joined: 06 Dec 2019, 11:03

06 Dec 2019, 11:20

Hello,

I've tried to implement dropdown component using your material style for labels above inputs. It works for other components, it works for dropdown too but not fully. Problem is, when i first load that page. For example when i login, it shows initial value for dropdown and it shows label inside. Once i click, it works. Next time i navigate to that same page, it works fine.


Code: Select all

<span class="md-inputfield">
              <p-dropdown filter="true" placeholder="***" [options]="***"
                optionLabel="***" (onClear)="onClear('***')" formControlName="***"
                [showClear]="true">
              </p-dropdown> 
<label>Carinska ispostava</label>
            </span>
Regards,
Predrag Crnogorac

predrag.crnogorac
Posts: 6
Joined: 06 Dec 2019, 11:03

06 Dec 2019, 16:10

Found out what was problem. I'm filling session storage and getting values from there. So it works when storage is already filled. Made it work, you can close this, sorry.

Post Reply

Return to “Sapphire - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests