metismenu / metismenu-react

react.js component for metismenu
MIT License
6 stars 8 forks source link

Dropdown doesn't work with dynamic data menu #7

Open wisnuvb opened 2 years ago

wisnuvb commented 2 years ago

I just used this lib, which turned out to be pretty awesome. But I'm getting a problem when using menu data sweetly from json. The problem I'm facing is that the dropdown doesn't work like when I write it directly.

Screen Shot 2021-12-06 at 15 17 44

all of menu above is come from json, and that freeze. I just using data from json for looping menu and show title only. For submenu i just hardcoded like below:

Screen Shot 2021-12-06 at 15 22 07