From 60aa3614f42b6f1340ded6b3cfe9f08009150b87 Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Tue, 31 Oct 2023 01:15:15 +1100 Subject: [PATCH] MDL-78885 comboboxsearch: Remove the redundant rtl context variable --- lib/classes/output/comboboxsearch.php | 1 - lib/templates/comboboxsearch.mustache | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/classes/output/comboboxsearch.php b/lib/classes/output/comboboxsearch.php index 7bc92ee53f9..152ad8730be 100644 --- a/lib/classes/output/comboboxsearch.php +++ b/lib/classes/output/comboboxsearch.php @@ -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, diff --git a/lib/templates/comboboxsearch.mustache b/lib/templates/comboboxsearch.mustache index 7515278d7dc..94748e32370 100644 --- a/lib/templates/comboboxsearch.mustache +++ b/lib/templates/comboboxsearch.mustache @@ -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}} -