Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug combining behaviours in drawers #294

Open
durey opened this issue Oct 24, 2020 · 0 comments
Open

Bug combining behaviours in drawers #294

durey opened this issue Oct 24, 2020 · 0 comments

Comments

@durey
Copy link

durey commented Oct 24, 2020

Thanks in advance for your time.

Expected behavior

If I specify a drawer with these classes:

"bmd-layout-container bmd-drawer-f-r bmd-drawer-in-lg-up bmd-drawer-overlay-md-down"

I expect it to behave like this:

  1. On <= md screens, drawer appears closed
  2. On <= md screens, when I open drawer, it overlays
  3. On >= lg screens, drawer appears opened, pushing content
  4. On >= lg screens, when I close drawer, it pushes back

Actual behavior

Cases 1, 2 and 3 work perfectly, but in >= lg screens the toggle button doesn't work.

Your working environment and MDB version information

    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" ...></script>
    <script src="https://unpkg.com/[email protected]/dist/umd/popper.js" ...></script>
    <script src="https://unpkg.com/[email protected]/dist/js/bootstrap-material-design.js" ...></script>

Resources (screenshots, code snippets etc.)

A live example here: https://jsfiddle.net/pwjfx8v6/

  1. I just copied/pasted the starting template from here: https://mdbootstrap.github.io/bootstrap-material-design/docs/4.0/getting-started/introduction/
  2. Then I copied/pasted the first drawer example from here: https://mdbootstrap.github.io/bootstrap-material-design/docs/4.0/material-design/drawers/#push
  3. Then I added these two classes to the bmd-layout-container tag: bmd-drawer-in-lg-up bmd-drawer-overlay-md-down

For every question of technical nature, in order to get the most detailed answer as soon as possible, ask on our dedicated Support Forum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant