DatePicker: dialog redisplays, if datePicker is updated via ajax request
See original GitHub issueDescribe the defect
If the datePicker itself is updated via <p:ajax event="dateSelect" update="@form"/>
, the date picker dialog doesn’t properly hide or seems to open up again instantly. Another click is needed to lose focus and hide the date dialog. This behaviour doesn’t happen, if p:calendar
is used.
Environment:
- PF Version: 10
- Affected browsers: ALL
Example XHTML
<h:form>
<p:panelGrid columns="2">
<h:outputText value="p:calendar" />
<p:calendar value="#{someBean.selectedDate}">
<p:ajax event="dateSelect" update="@form" />
</p:calendar>
<h:outputText value="p:datePicker" />
<p:datePicker value="#{someBean.selectedDate}">
<p:ajax event="dateSelect" update="@form" />
</p:datePicker>
</p:panelGrid>
</h:form>
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How do I put a jQuery datepicker in a SimpleModal dialog that ...
licenseExpiry is defined within the contents of the ajax call (SchoolDetails.php). However, when I click on the text box, nothing happens.
Read more >ajax loading content in jquery dialog content contains a ...
so at first I had a page I was loading with an ajax call. this page ... of the datepicker not working after...
Read more >Element: <oj-date-picker> - Oracle
E.g., notewindow displays the new hint(s). Running Validation. if element is valid when converter property changes, the display value is ...
Read more >React Date Inputs Library & DatePicker Component - Overview
KendoReact DatePicker Overview · When the React DatePicker is initially loaded, you can render a specific default value for that date. · You...
Read more >changelog-1.5 - Apache
toString(true) fails with MarkupNotFoundException if the call is made in the ... [WICKET-3932] - Hide the DatePicker, when the user clicks on an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm, that this works great. Thanks for your quick action!
As
focusOnSelect
isfalse
by default, this doesn’t require any further configuration.Here is a patched reproducer showing its fixed: pf-7174.zip