Skip to content

Commit

Permalink
MDL-77375 tool_dataprivacy: set boundary of the dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Jul 1, 2023
1 parent 2f108b6 commit f30316b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -285,7 +285,7 @@ public function col_actions($data) {
$actionsmenu = new action_menu($actions);
$actionsmenu->set_menu_trigger(get_string('actions'));
$actionsmenu->set_owner_selector('request-actions-' . $requestid);
$actionsmenu->set_constraint('[data-region=data-requests-table] > .no-overflow');
$actionsmenu->set_boundary('window');

return $OUTPUT->render($actionsmenu);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/behat/behat_action_menu.php
Expand Up @@ -52,7 +52,7 @@ public function i_open_the_action_menu_in($element, $selectortype) {
// Gets the node based on the requested selector type and locator.
$node = $this->get_node_in_container(
"css_element",
"[role=button][aria-haspopup=true],[role=menuitem][aria-haspopup=true]",
"[role=button][aria-haspopup=true],button[aria-haspopup=true],[role=menuitem][aria-haspopup=true]",
$selectortype,
$element
);
Expand Down

0 comments on commit f30316b

Please sign in to comment.