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

Overflow check for parent can be inclusive of any of the overflow condition #354

Open
rajatkb-typito opened this issue May 14, 2021 · 0 comments

Comments

@rajatkb-typito
Copy link

if (overflowRegex.test(overflow) && overflowRegex.test(overflowX) && overflowRegex.test(overflowY)) {

  • When using the overflow:true props it did not pick the correct parent and hence was not giving the desired effect.
  • Since I was restricting the overflow on x axis and scroll on y axis the parent was ignored.
  • We can use or condition to enable detection of any parent that has an overflow
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

1 participant