MDL-78885 comboboxsearch: Remove the redundant rtl context variable

This commit is contained in:
Shamim Rezaie 2023-10-31 01:15:15 +11:00
parent a320dff736
commit 60aa3614f4
2 changed files with 1 additions and 4 deletions

View File

@ -124,7 +124,6 @@ class comboboxsearch implements renderable, templatable {
*/
public function export_for_template(renderer_base $output): array {
return [
'rtl' => right_to_left(),
'renderlater' => $this->renderlater,
'buttoncontent' => $this->buttoncontent ,
'dropdowncontent' => $this->dropdowncontent,

View File

@ -19,7 +19,6 @@
Context variables required for this template:
* name - The name of the input element representing the combobox.
* value - The value of the input element representing the combobox.
* rtl - Is this dropdown being used in a RTL case? if so, we need to ensure it drops down in the right place.
* renderlater - This determines if we show a placeholder whilst fetching content to replace within the placeholder region
* buttoncontent - The string to be shown to users to trigger the dropdown
* usebutton - If we want to use a button to trigger the dropdown, or just the dropdown itself
@ -33,7 +32,6 @@
{
"name": "input-1",
"value": "0",
"rtl": false,
"renderlater": false,
"usebutton": true,
"buttoncontent": "Example dropdown button",
@ -66,7 +64,7 @@
{{^usebutton}}{{{buttoncontent}}}{{/usebutton}}
<div class="{{#dropdownclasses}}{{.}}{{/dropdownclasses}} dropdown-menu {{#rtl}}dropdown-menu-right{{/rtl}}"
<div class="{{#dropdownclasses}}{{.}}{{/dropdownclasses}} dropdown-menu"
id="dialog-{{instance}}-{{uniqid}}"
{{#usebutton}}
role="dialog"