Skip to content

Commit c3273b7

Browse files
committed
[FIX] web: dropdown boundary overflow
Open a search view modal ("search more" on a m2o) Select a filter that will make records fall to zero The modal will shrink Trigger the opening of a dropdown (Filters), and make sure that there are many many menu items there (many filters) Before this commit, the dropdown was bigger than the modal which had a scroll bar, however, the dropdown itself was not scrollable properly So, clicking in it to select a menu item will fail when scrolled all the way down, because elements did not actually followed the scroll After this commit, the dropdown follows the scroll, and it is possible to use it even way down We use a behavior of bootstrap 4 itself: FIX: twbs/bootstrap#24976 ISSUE: twbs/bootstrap#24251 OPW 2076337 closes odoo#37594 Signed-off-by: Lucas Perais (lpe) <[email protected]>
1 parent bd1e5f7 commit c3273b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/web/static/src/xml/base.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@
10981098
</t>
10991099

11001100
<div t-name="web.DropdownMenu" t-att-class="widget.dropdownStyle.el.class" t-att="widget.dropdownStyle.el.attrs">
1101-
<button t-att-class="widget.dropdownStyle.mainButton.class" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
1101+
<button t-att-class="widget.dropdownStyle.mainButton.class" data-toggle="dropdown" aria-expanded="false" tabindex="-1" data-boundary="viewport">
11021102
<span t-att-class="widget.dropdownIcon"/> <t t-esc="widget.dropdownTitle"/> <span t-if="widget.dropdownSymbol" t-att-class="widget.dropdownSymbol"/>
11031103
</button>
11041104
<div class="dropdown-menu o_dropdown_menu" role="menu">

0 commit comments

Comments
 (0)