MDL-77375 tool_dataprivacy: set boundary of the dropdowns

This commit is contained in:
Shamim Rezaie
2023-07-02 00:03:04 +10:00
parent 1d724c4a4a
commit 4059ac3e29
2 changed files with 2 additions and 2 deletions
@@ -288,7 +288,7 @@ class data_requests_table extends table_sql {
$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);
}
+1 -1
View File
@@ -52,7 +52,7 @@ class behat_action_menu extends behat_base {
// 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
);