Sidebar: Components z-index behind control
See original GitHub issueDescribe the defect When trying to use the DatePicker or autoComplete components within the sidebar they do not work, Another problem is that when adding a form with several fields the sidebar does not create a scroll.
Environment:
- PF Version: 8.0.7
- Affected browsers: Chrome, iOS, ALL
To Reproduce Steps to reproduce the behavior:
Just add within a page the button that will call the sidebar and add the DatePicker or autoComplete components and the error will be simulated.
You can use your demo: http://www.primefaces.org:8080/showcase/ui/overlay/sidebar.xhtml
And add something like this:
Expected behavior Run all existing Primefaces components within the sidebar, in addition to creating scrolling for cases where the form is large.
Example XHTML
<p:sidebar style="width: 80em" modal="true" position="right" baseZIndex="10000"
widgetVar="Test" blockScroll="true">
<h3>Test Sidebar</h3>
<p:outputLabel value="Data da emissão"/>
<p:datePicker value="#"
id="idDataEmissao" locale="br" pattern="dd/MM/yyyy"/>
<p:outputLabel value="Simple" for="@next"/>
<p:autoComplete id="acSimple" value="#{autoCompleteView.txt1}"
completeMethod="#{autoCompleteView.completeText}" scrollHeight="250"/>
</p:sidebar>
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
css - How can I move my sidebar to the front of other HTML ...
I made the main sidebar to have z-index value > primary-content's value, but it still look the same. Primary-content is the text and...
Read more >Using z-index - CSS: Cascading Style Sheets - MDN Web Docs
The first article of this guide, Stacking without the z-index property, explains how stacking is arranged by default.
Read more >Sidebar | Components - BootstrapVue
Several props are provided for controlling the appearance of the sidebar. ... a different z-index to ensure the sidebar appears over or under...
Read more >4 reasons your z-index isn't working (and how to fix it)
It seems simple at first- a higher z-index number means the element will be on top of elements with lower z-index numbers.
Read more >z-index - CSS-Tricks
The z-index property in CSS controls the vertical stacking order of elements that overlap. As in, which one appears as if it is...
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 prefer to work directly on the component, and it worked just by adding
border: none;
<p:scrollPanel mode="native" style="width:100%; height:100%; border:none;">