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.

How do you use this with the backdrop component?

See original GitHub issue

Feature Request

It’d be really helpful if there were more examples in the docs, ie how do I use this with the backdropComponent? Because this doesn’t seem to work

<BottomSheet
	ref={postActions}
	index={0}
	snapPoints={useMemo(() => [0, '25%'], [])}
	onChange={handleSheetChanges}
	backdropComponent={<BottomSheetBackdrop />}
>
...
</BottomSheet>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
Johan-dutoitcommented, Jan 12, 2021

The backdrop is used like this: backdropComponent={BottomSheetBackdrop}.

However, there is a bug I believe. The backdrop is capturing all events and not bubbling up. i.e. touches are not happening.

Repro steps

  • Assign a backdrop
  • Try to tap on anything (i.e. the trigger for opening the bottom sheet)
  • Nothing happens

I can get around this with hot reloading

  • While no backdrop assigned, open the bottom sheet
  • Assign the backdrop
  • All events work as expected (while opened and closed)
6reactions
gorhomcommented, Jan 12, 2021

@Johan-dutoit true , however this backdrop also used with bottom sheet modal where it should block the view 🤷‍♂️

one thing for sure, is that i need to document this better 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Backdrop Component in ReactJS? - GeeksforGeeks
The backdrop component is used to provide emphasis on a particular element or parts of it. Material UI for React has this component...
Read more >
Backdrop React Component - Material UI - MUI
The backdrop component is used to provide emphasis on a particular element or parts of it. The backdrop signals to the user of...
Read more >
Introduction to Backdrop component in Material-UI React
Backdrop component of Material-UI: Backdrop is used to show a dimmed layout over the current window. We can use this to show a...
Read more >
How to add Backdrop that overlays single component such as ...
I have a table within a Paper component that I'm doing server-side pagination/loading and I want to display an overlay just over the...
Read more >
material-ui-backdrop-component examples - CodeSandbox
Learn how to use material-ui-backdrop-component by viewing and forking material-ui-backdrop-component example apps on CodeSandbox.
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