[MDCSelect] overflow inside of dialog
See original GitHub issueBug report
Select within dialog creates overflow for dropdown menu
That was one of the reasons we used mdc-select__native-control
, besides #5428 (we can’t simply send form data as fetch(url, new FormData(formElement))
now).
Also mobiles handle native select dropdowns better.
Steps to reproduce
- Create dialog with MDCSelect inside
Actual behavior
↑
Expected behavior
Not to have overlay.
Your Environment:
Software | Version(s) |
---|---|
MDC Web | 4.0.0 |
Browser | Brave / Chrome |
Operating System | Win10 |
Possible solution
Hoist menu to body in some way?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:13 (7 by maintainers)
Top Results From Across the Web
mdc-select inside a mdc-dialog : r/MaterialDesign
Hi Im working with material components web - mdc ( https://material.io/ ) without any frontend frameworks, just typescript and html.
Read more >Not able to update value in mdc-dialog using ngModel
But the value is not updated inside a <mdc-dialog> . I have imported FormsModule in app.module.ts file. But then also I am having...
Read more >mdb-select in container with overflow
Hello, if I use mdb-select in modal-body with overflow (adding .modal-dialog-scrollable to modal-dialog), then select options are not drawing correctly over ...
Read more >Mdc Select Dropdown Jumps To Bottom
Since MDC Select does not use a element add a hidden element to capture the value in HTML [MDCSelect] overflow inside of dialog...
Read more >@material/dialog | Yarn - Package Manager
Material Components for the web helps developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using
mdc-menu-surface--fixed
can helpThis problem has now been fixed the the Material Theme team. As a note for anybody wondering how to apply this to their own projects, do the following:
mdc-menu-surface--fixed
class to the div that already has themdc-select__menu
classmy-width-class
to the two div with classesmdc-select__anchor
andmdc-select__menu
my-width-class
, e.g. 200px