Calendar showing just at second click

UI Components for JSF
Post Reply
dcuder
Posts: 2
Joined: 29 Nov 2019, 17:52

29 Nov 2019, 18:02

Hi, I have a problem with primeng 7.0.3 calendar module.
I have two calendars input in the same form, a simple date-from date-to.
When I click on one of them, the popup calendar appears and instantly disappears.
It is correctly shown just at second click. If I click outside and then in again, the behavior is randomly correct or wrong.
Here's my code:

Code: Select all

<div class="col col-3 margin-top-1">
      <label>Data Apertura</label>
      <div class="ui-inputgroup">
        <span class="ui-inputgroup-addon"><i class="fa fa-calendar"></i></span>
        <p-calendar [(ngModel)]="ticket.dataApertura"
                    showTime="true"
                    hourFormat="24"
                    dateFormat="dd-mm-yy"
                    [locale]="itIT"
                    (ngModelChange) = "aggiornaOraChiusura(sla, 0)"
                    name="dataApertura"></p-calendar>
      </div>
    </div>
    <div class="col col-3 margin-top-1">
      <label>Data Prevista Chiusura</label>
      <div class="ui-inputgroup">
        <span class="ui-inputgroup-addon"><i class="fa fa-calendar"></i></span>
        <p-calendar [(ngModel)]="ticket.dataPrevChiusura"
                    showTime="true"
                    hourFormat="24"
                    dateFormat="dd-mm-yy"
                    [minDate]="minDate(ticket.dataApertura)"
                    (ngModelChange)="checkMinDate(ticket.dataApertura)"
                    [locale]="itIT"
                    name="dataPrevChiusura"></p-calendar>
      </div>
    </div>

Melloware
Posts: 1384
Joined: 22 Apr 2013, 15:48

02 Dec 2019, 14:24

Wrong forum. This is the PrimeFaces forum you want the PrimeNG forum.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.8 / PF Extensions 7.0.3

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests