You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a form with four dropdowns, but when I open it, the input at the bottom overlaps the listing.
On android I solved the problem using zIndex: 1, but on IOS I still have the same problem.
hi @hossein-zare , the mentioned solution doesn't work when the dropdown pops up ward. tbh i think use zIndex prop to fix the issue is a poor choice, because in RN the zIndex doesn't work the same way as in web. In web the zIndex works across element hierarchy as long as containing element doesn't have a zIndex prop, however in RN zIndex only works with sibling elements, example here (blue block is zindex 4, in web it is supposed to cover all the other element:
i think a better choice to implement it is to have a singleton <Portal /> element, the user of the lib should place the <Portal /> element in a place where it is guaranteed to be on top. then the lib "teleport" the dropdown layer to the <Portal /> location. that also solve the issue that multple dropdown layer can clash unless more control is added.
I have a form with four dropdowns, but when I open it, the input at the bottom overlaps the listing.
On android I solved the problem using zIndex: 1, but on IOS I still have the same problem.
Android:
IOS:
code:
CSS:
The text was updated successfully, but these errors were encountered: