Giter VIP home page Giter VIP logo

material-ui-nested-menu-item's People

Contributors

azmenak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

material-ui-nested-menu-item's Issues

ability to change MenuItem component

It seems adding component="a" to NestedMenuItem in order to change the MenuItem component to a tag instead of li tag doesn't work.
After taking a look on the code you are extracting component prop as div tag by default but not used down there as MenuItem props.

CommonJS Export

Would it be possible to add support for CommonJS, e.g. main in the package.json in addition to ES6 modules? We're using Jest for tests and running into an issue with ES6 not being supported.

Add Icon to NestedMenuItem

How/Can we add an icon to the left hand side of the NestedMenuItem? I have tried the following:

<NestedMenuItem
                                            iconLeft = {<FaBeer />}
                                            label="Sub-Button 3"
                                            parentMenuOpen={!!menuPosition}
                                            onClick={handleItemClick}
                                            style={{paddingTop: 0, paddingBottom: 0, paddingLeft: 5, fontSize: "0.85rem"}}

                                          >

                                            <MenuItem onClick={handleItemClick}>Sub-Sub-Button 1</MenuItem>
                                            <MenuItem onClick={handleItemClick}>Sub-Sub-Button 2</MenuItem>
                                        </NestedMenuItem>                                    

Nested MenuItem don't close when using keyboard to select

What you were expecting:
When using the arrow key to navigate on NestedMenuItem-List the popup menu close upon changing to the next NestedMenuItem and a new menu popup open.

What happened instead:
When using the arrow key to navigate up and down on the NestedMenuItem-List the nested menu popup of the previous selected one are still there and don't close by themselves and the new popup are rendered above the old ones.

Steps to reproduce:

Scrollbar Broken on Chrome

I've seen some similar issues on stack overflow but I am trying to utilize the NestedMenuItem and it appears to work well but on the breakout dropdown menu the scroll is broken on Chrome but works on Firefox.

                                    id={`navigation-menu-${option.optionDisplayValue}`}
                                    label={option.optionDisplayValue}
                                    parentMenuOpen={isMenuOpen}
                                    onClick={handleClose(option)}
                                >
                                    {option.subOptions &&
                                        option.subOptions.map((subOption) => (
                                            <MenuItem
                                                key={`navigation-menu-${option.optionDisplayValue}-${subOption.optionDisplayValue}`}
                                                onClick={handleClose(subOption)}
                                            >
                                                {subOption.optionDisplayValue}
                                            </MenuItem>
                                        ))}
                                </NestedMenuItem>```

Here is an example of the code. Any suggestions or advice you can give would be greatly appreciated! Thank you

@material-ui to @mui

I have upgraded my project from @material-ui to @mui and i see below error when i use material-ui-nested-menu-item now.

error:
"./node_modules/material-ui-nested-menu-item/dist-web/index.js
Module not found: Can't resolve '@material-ui/core/Menu' in '/app/node_modules/material-ui-nested-menu-item/dist-web'"

later i found that the below dependencies incompatible with latest material ui library.

"@material-ui/core": "^4.9.0",
"@material-ui/icons": "^4.5.1",

kindly advice...

Remove @mui/codemod dependency from material-ui-nested-menu-item-v5

Hi,

I think @mui/codemod are scripts that help update MUI APIs from v4 to v5 but its not meant to be packaged with your component.
Because of dependency propagation, I suggest to remove it, maybe add it as a Devdependency ?
Is there a reason to add it as a direct dependency that I misunderstand ?

Thanks in advance

Ability to open on the left

I currently have a menu that's on the right-most of the screen. I'd like the ability to tell the submenu to open to the left instead of to the left/on top of.

I can open a PR for this if we can agree on what needs to get done and the API of what this might look like :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.