primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Double clicking on a calendar date causes the page to reload

Open sgentile opened this issue 8 years ago • 4 comments

I was able to even duplicate this on the documentation page

  1. click the icon, control comes up
  2. double click a date

Page reloads

sgentile avatar Jul 31 '18 19:07 sgentile

Confirmed. Calendar has been having a LOT of regressions recently. I'm afraid of updating at this point. @cagataycivici

Mysame avatar Aug 02 '18 07:08 Mysame

Same problem here, can you please check ASAP? Thanks

LsKLele avatar Aug 03 '18 13:08 LsKLele

The page reloads since they use '<a href="#" ' on rendered date-picker dates, thus double clicking them fast will make your Angular app (which uses Hash Navigation) to reset and jump to root page ("/#" page).

chrispinzaru avatar Aug 06 '18 11:08 chrispinzaru

@cagataycivici Thank you very much for fast response/fix and release! If I can further help you somehow - please let me know. Everything is fine, yet the dates now don't have "cursor: pointer" style (Anchor with "href" determined that style) - So we manualy have to add "cursor: pointer" to rules ".ui-datepicker td > span, .ui-datepicker td > a"