Comments (4)
Hey, @ElliPetsava, thanks for the report!
A minimal reproduction test case with the latest version would help a lot. A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!
from material-ui.
Hey, @ElliPetsava, thanks for the report!
A minimal reproduction test case with the latest version would help a lot. A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!
In our app we have implemented a side menu similar to the documentation example of 'Mini variant drawer'.
[https://mui.com/material-ui/react-drawer/#mini-variant-drawer]
I want to toggle the drawer by clicking on it, instead of a hamburger button.
ie. I click on the mini drawer (outside of a button) and it opens. I click on the expanded drawer and it returns to the minimized drawer state.
Is there a way to implement this?
I will try to build an example of my implementation.
I am also attaching some screenshots of the drawer and where I placed the event inside of the drawer
from material-ui.
I think you can achieve what you're looking for by stopping propagation on the list item button components, for example:
<ListItemButton
onClick={(event) => event.stopPropagation()}
/>
Here's a working example: https://stackblitz.com/edit/react-wiyrro?file=Demo.tsx
from material-ui.
Thank you for the help.
from material-ui.
Related Issues (20)
- [joy-ui] Forwarding ref to ModalOverflow breaks Select inside dialog HOT 7
- [material-ui][Switch] Switch transformation issue with font size change HOT 2
- [material-ui][docs] Provide more details about why to use `material-nextjs` package in "Next.js integration" doc HOT 1
- [material-ui][docs] Remove Transfer List from components/inputs HOT 8
- [material-ui][Tabs] Ensure consistent TypeScript type for the `value` prop across all tab-related components
- [material-ui] Add an example project with Next.js 14 (App Router) and Tailwind CSS HOT 5
- TextField multiline disables browser autofill HOT 2
- [material-ui][TextField] Filled TextField Label has insufficient colour contrast when focused HOT 1
- [material-ui][Autocomplete] The options list is added to the DOM even when there are no options, causing style problems HOT 5
- [tabs] Widen value type to any HOT 1
- [material-ui][docs] The icon preview dialog is broken
- Reuse the styles on our own components by leveraging class names HOT 1
- [material-ui][Text Field] Warning about missing id/name with the multiline prop HOT 2
- [material-ui][Radio] "No label associated with a form field" when using `FormLabel` with `RadioGroup` HOT 1
- [material-ui][Autocomplete] Hover state persists even when cursor leaves the select box HOT 1
- [material-ui][Switch] Not focusing as the next element in tab index HOT 6
- [material-ui][Tooltip] When inside a dialog, the text within it cannot be selected in the usual manner HOT 9
- [material-ui][Autocomplete] Caret transformation issue with font size change HOT 2
- [base-ui][Select] The macOS/Safari VoiceOver doesn't read current value correctly HOT 1
- [Autocomplete] Docs demo crashing on Chrome in an Android phone HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.