0

I have a parent component that has overflow: 'auto' that I can not disable/change.

The child is an iframe that has its own scrolling, how can I disable the parent srolling from within the child to avoid the double scrollbars?

by

1
  • 1
    Use overflow: hidden; Commented Jul 29, 2020 at 9:07

1 Answer 1

2

Set the parent to

overflow: hidden;

You can do that with a dynamic css-class that you add with javascript whenever the iframe is present.

Sign up to request clarification or add additional context in comments.

1 Comment

If you can't change the parents css and javascript you will have a problem.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.