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.

[SwipeableDrawer] onOpen props is not working

See original GitHub issue

not sure why the onOpen prop in SwipeableDrawer would not be called when the drawer is requests to be opened.

截圖 2021-02-03 下午6 29 09 Tried to print out some words, but seems only onClose was printing out words

But the drawer is still working well.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Feb 4, 2021

@belong112 you can check the tests we have in the repository for this component and prop.

0reactions
belong112commented, Feb 4, 2021

@oliviertassinari May I ask how do you do the unit test of the onOpen function?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SwipeableDrawer] onOpen props is not working #24757
not sure why the onOpen prop in SwipeableDrawer would not be called when the drawer is requests to be opened. Tried to print...
Read more >
Why are the props onClose and onOpen marked as ...
SwipeableDrawer is watching for swipe actions on the document body in order to trigger the onOpen and onClose functions, so if you don't...
Read more >
SwipeableDrawer API - Material UI
API reference docs for the React SwipeableDrawer component. Learn about the props, CSS, and other APIs of this exported module. ... onOpen *,...
Read more >
Material-Ui | Swipeable Drawer not opening with swipe-Reactjs
Coding example for the question React | Material-Ui | Swipeable Drawer not opening with swipe-Reactjs.
Read more >
SwipeableDrawer.js - mui/material-ui - Sourcegraph
// Ignore the nodes that have no width. // Keep elements with ...
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