-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Bootstrap nav #3443
Comments
Confirmed. But submenus support in dropdown has been removed in BS3 :
http://stackoverflow.com/questions/18023493/bootstrap-3-dropdown-sub-menu-missing |
yeah but Nav widgets supports them. This issue is about the auto generated ids which are wrong. |
@aripjanovsh maybe this helps you out https://github.com/brewing/yii2-foundation-topbar |
I confirm the issue. |
changing recursion call $content .= $this->renderItems($item['items']); to $content .= static::widget([
'items' => $item['items'],
]); fixes problem with ids. Submit pull request? |
Yes. |
Fixed. |
See my comment here: #4354 (comment) |
With reference to commit e6be9fd, I maybe missing something. But I do not see Is it just to help subclass or help extend the widget? Or do you need this to be merged with |
The purpose is to apply it to container but not to subtags. |
Ok... but if I check the Dropdown widget code, |
Try it. |
I understand the recursive call and it does work (for unsetting the return Html::tag('ul', implode("\n", $lines), $this->options); and it does not use return Html::tag('ul', implode("\n", $lines), $containerOptions); Is the above correct? If so, using another class level private variable |
Yes, it can be done that way. |
Ok. It may be better for not breaking BC. |
@kartik-v can you help with testing it and a pull request? |
…down` were generating wrong ids for submenus
output is not correct
identical ids id="w0" , and dropdown-submenu not working
p.s. sorry for my english :)
The text was updated successfully, but these errors were encountered: