{"action":"closed","issue":{"url":"https://api.github.com/repos/spatie/laravel-menu/issues/48","repository_url":"https://api.github.com/repos/spatie/laravel-menu","labels_url":"https://api.github.com/repos/spatie/laravel-menu/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-menu/issues/48/comments","events_url":"https://api.github.com/repos/spatie/laravel-menu/issues/48/events","html_url":"https://github.com/spatie/laravel-menu/issues/48","id":229833383,"number":48,"title":"Wrap around <ul> only","user":{"login":"bbashy","id":1149200,"avatar_url":"https://avatars3.githubusercontent.com/u/1149200?v=4","gravatar_id":"","url":"https://api.github.com/users/bbashy","html_url":"https://github.com/bbashy","followers_url":"https://api.github.com/users/bbashy/followers","following_url":"https://api.github.com/users/bbashy/following{/other_user}","gists_url":"https://api.github.com/users/bbashy/gists{/gist_id}","starred_url":"https://api.github.com/users/bbashy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbashy/subscriptions","organizations_url":"https://api.github.com/users/bbashy/orgs","repos_url":"https://api.github.com/users/bbashy/repos","events_url":"https://api.github.com/users/bbashy/events{/privacy}","received_events_url":"https://api.github.com/users/bbashy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-05-18T23:40:19Z","updated_at":"2018-02-23T15:22:55Z","closed_at":"2018-02-23T15:22:55Z","author_association":"NONE","body":"Got pretty much everything working. Thanks for the package!\r\n\r\nOne small issue with dropdown using UIKit. When I use `->submenuIf()` and have `->wrap('div', ['class' => 'uk-navbar-dropdown'])`, it adds it around the `<a>` as well which I don't want. Any way to do that? Tried quite a few different ideas but none worked.\r\n```\r\nMenu::macro('main', function() {\r\n    $menu = Menu::new()\r\n        ->addClass('uk-navbar-nav')\r\n        ->setActiveClass('uk-active')\r\n        ->route('home', 'Home')\r\n        ->submenuIf($isAdmin, '<a href=\"#\">Admin</a>', function (Spatie\\Menu\\Laravel\\Menu $menu) {\r\n            $menu\r\n                //->wrap('div', ['class' => 'uk-navbar-dropdown'])\r\n                ->addClass('uk-nav uk-navbar-dropdown-nav')\r\n                ->route('admin.item', 'Item')\r\n                ->route('admin.item2', 'Item 2')\r\n            ;\r\n        })\r\n        ->setActiveFromRequest()\r\n    ;\r\n\r\n    return $menu;\r\n});\r\n```\r\n\r\nNeed this format;\r\n```\r\n<li>\r\n    <a href=\"#\">Parent</a>\r\n    <div class=\"uk-navbar-dropdown\">\r\n        <ul class=\"uk-nav uk-navbar-dropdown-nav\">\r\n            <li><a href=\"#\">Item</a></li>\r\n            <li><a href=\"#\">Item</a></li>\r\n        </ul>\r\n    </div>\r\n</li>\r\n```"}}
{"actor":{"display_login":"sebastiandedeyne"}}