Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z index in table header #1919

Closed
foodaka opened this issue Aug 10, 2017 · 16 comments
Closed

z index in table header #1919

foodaka opened this issue Aug 10, 2017 · 16 comments

Comments

@foodaka
Copy link

foodaka commented Aug 10, 2017

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; } }

@futbolistua
Copy link

I have the same issue. It happens when container has overflow hidden. So will this behavior be fixed?

@agirton agirton added the feature label Sep 5, 2017
@agirton
Copy link
Collaborator

agirton commented 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.

@agirton agirton closed this as completed Sep 5, 2017
@foodaka
Copy link
Author

foodaka commented Sep 7, 2017

ok thanks for the reply

@ghost
Copy link

ghost commented Nov 22, 2017

This is not a feature, is a major bug.

@Chikel
Copy link

Chikel commented Feb 6, 2018

I have the same issue with overflow: auto.

@ex3ndr
Copy link

ex3ndr commented Feb 19, 2018

Any ETA on this? This is very important for many apps.

@simonpinn
Copy link

👍

@sabbiu
Copy link

sabbiu commented May 3, 2018

What is the progress in this? I am also looking for this use case.

@devthejo
Copy link

me too with react-table

@sabbiu
Copy link

sabbiu commented May 18, 2018

@TakioN I was also looking for it to work with react-table. This helped me, #810 (comment)

@devthejo
Copy link

@sabbiu thank you for the info

@DonkovtsevArthur
Copy link

DonkovtsevArthur commented Dec 2, 2018

getTableProps={() => {
return {
style: { overflow: 'visible' }
};
}}
getTbodyProps={() => {
return {
style: { overflow: 'visible' }
};
}}
getTdProps={(state, rowInfo, column) => {
const { id } = column;
return {
style: id === 'idForMyColumnWithSelects' ? { overflow: 'visible' } : {}
};
}}

@devthejo
Copy link

devthejo commented Dec 7, 2018

@DonkovtsevArthur great, thanks for the info

@cmbasnett
Copy link

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

@wrichman
Copy link

wrichman commented Feb 9, 2019

Would someone be able to post a working example of the two together?

@meldaban
Copy link

Yo tenia este problema, estoy usando material table, y lo solucione configurando el estilo del header del zIndex porque estaba en 10 y lo puse en cero.

<MaterialTable
options={{
headerStyle:{backgroundColor: '#767E9F',color: 'white', fontWeight:'bold' , zIndex:0}
}}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests