我有一个带有日历日期选择器的分层菜单。我想在选择后关闭日历弹出窗口但不是分层菜单。但是当我从日历弹出窗口中选择日期时,分层菜单会关闭而不是日历弹出窗口。有没有办法获得所需的行为?
<p:commandButton id="advancedSearchBtn" icon="fa fa-caret-down" value="" type="button" />
<p:tieredMenu overlay="true" trigger="advancedSearchBtn" my="left top" at="left bottom" >
<p:menuitem>
<p:panel >
<h:outputText style="color:black" value="Content" />
<p:inputText value="#{searchBean.searchContent}" />
<br/>
<br/>
<h:outputText value="Author" />
<p:inputText value="#{searchBean.searchAuthor}" />
<br/>
<br/>
<h:outputText value="Başlangıç Tarihi" />
<p:calendar value="#{searchBean.startDate}"
pattern="MM/dd/yyyy HH:mm"
style="width:20px;"/>
<br/>
<br/>
<h:outputText value="Bitiş Tarihi" />
<p:calendar value="#{searchBean.finishDate}"
pattern="MM/dd/yyyy HH:mm"
style="width:20px;"/>
</p:panel>
</p:menuitem>