question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

z index in table header

See original GitHub issue

Hi there, cant seem to find this anywhere. I have my react select in a table header. and the content does not flow above the table row when select is open.

screenshot 2017-08-10 16 13 37

ive tried many variations of still cant get it. any suggestions?

.select-hack { position: relative; width: 100%; margin-bottom: 20px; border-collapse: separate; :global .Select { position: absolute !important; width: 100%; z-index: 999 !important; } }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16

github_iconTop GitHub Comments

9reactions
cmbasnettcommented, Jan 7, 2019

For me, this fixed it up:

<ReactTable
    {...}
    getTheadFilterThProps={(state, rowInfo, column) => {
        return {
            style: { overflow: 'visible' }
        };
    }}
/>

This makes all filter columns have the overflow visible style, allowing you to see the dropdowns.

bugfix

6reactions
agirtoncommented, Sep 5, 2017

Hi @foodaka and @futbolistua we don’t have plans to fix this for 1.0 as it would require a bigger change to the project. As @futbolistua pointed out this issue happens if the container has overflow hidden. In order to fix this the dropdown would have to be a fixed element and be programmatically positioned based on the input area.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Z-index not working inside a table if there is an overflow-scroll ...
z -index has nothing to do with "going out of a table", only position: absolute does. Where is position: absolute in your code?...
Read more >
z-index - CSS: Cascading Style Sheets - MDN Web Docs
The z-index CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a larger ...
Read more >
CSS z-index property - W3Schools
The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element...
Read more >
Fixed Table Headers with Pure CSS: Sticky On Scroll
The top property value of 0px ensures that the table header always remains at the very top of the viewable area, and the...
Read more >
Reactive Grid - How to change the z-index of the header ...
The reactive grid table (bootstrap-3) header z-index is currently has value of 500. Some of our common default dialogs which we cannot ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found