![]() ![]() Scrolling as this makes it messy and is unnecessary, it should close onĬlick and not scroll. You don't need to add an event to listen for Parent button will move but the dropdown content wont, hence why the That is true it should, but this can be achieved by using positionĪbsolute and attributes as stated previously in this issue.īy making it fixed, if the user scrolls when the dropdown is open the Reply to this email directly or view it on GitHub. dropdown-menu would have to be positioned with JS, like the tooltip, and I don't know what problems would be introduced by shipping the ul.dropdown-menu elsewhere in the DOM, even temporary. I implemented drop downs in rows of a grid, all those drop down containers would have the same class so a suitable yet clever way of maybe supplying the xpath in the data attribute to be sure the correct drop down is shown and there's no duplication is best IMO.ĭropdowns experience the same clipping problems as tooltips, so one solution would be to allow specifying data-container="body", as you can with tooltips. ![]() ![]() However, you have to be careful with this. The suggested linking things with the data attribute and toggling a hide class on click is nice and I've implemented this on components previously. Depends on whether you have control over the CSS of the container I suppose. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |