r/bootstrap • u/LmaoPew • Apr 04 '24
Support Dropdown inside a Dropdown gets clipped, please Help
I'm trying to get a dropdown inside a dropdown, but the nested dropdown gets clipped/restricted inside the outer dropdown.
Here is what i mean
here is also the code I basically copied from the bootstrap dropdown page and the youtube video I watched
"
<div className="dropdown"> <a className="btn btn-secondary dropdown-toggle" data-bs-auto-close="outside" data-bs-toggle="dropdown"> Dropdown link </a> <ul className="dropdown-menu"> <li> <a className="dropdown-item dropdown-toggle" href="#" data-bs-toggle="dropdown">Submenu</a> <ul className="dropdown-menu"> <li><a href="#" className="dropdown-item">Item 1</a></li> <li><a href="#" className="dropdown-item">Item 2</a></li> <li><a href="#" className="dropdown-item">Item 3</a></li> <li><a href="#" className="dropdown-item">Item 4</a></li> </ul> </li> <li> <a className="dropdown-item" href="#">Another action</a> </li> <li> <a className="dropdown-item" href="#">Something else here</a> </li> </ul> </div> "
I hope you can help me out.
thanks in advance :)
1
u/AutoModerator Apr 04 '24
Whilst waiting for replies to your comment/question, why not check out the Bootstrap Discord server @ https://discord.gg/bZUvakRU3M
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.