MDL-62514 form: Add missing data-tags attribute
authorSara Arjona <sara@moodle.com>
Thu, 31 Jan 2019 11:15:21 +0000 (12:15 +0100)
committerSara Arjona <sara@moodle.com>
Thu, 31 Jan 2019 12:50:00 +0000 (13:50 +0100)
The data-tags=1 attribute was missing for the autocomplete forms
without suggestions.

lib/templates/form_autocomplete_input.mustache
theme/boost/templates/core/form_autocomplete_input.mustache

index 38249a8..805b162 100644 (file)
@@ -39,7 +39,7 @@
 <input type="text" id="{{inputId}}" list="{{suggestionsId}}" placeholder="{{placeholder}}" role="combobox" aria-expanded="false" autocomplete="off" autocorrect="off" autocapitalize="off" aria-autocomplete="list" aria-owns="{{suggestionsId}} {{selectionId}}" {{#tags}}data-tags="1"{{/tags}}/><span class="form-autocomplete-downarrow" id="{{downArrowId}}">&#x25BC;</span>
 {{/showSuggestions}}
 {{^showSuggestions}}
-<input type="text" id="{{inputId}}" placeholder="{{placeholder}}" role="textbox" aria-owns="{{selectionId}}"/>
+<input type="text" id="{{inputId}}" placeholder="{{placeholder}}" role="textbox" aria-owns="{{selectionId}}" {{#tags}}data-tags="1"{{/tags}}/>
 {{/showSuggestions}}
 
 {{#js}}
index 20e6430..ea4614d 100644 (file)
@@ -39,7 +39,7 @@
 <input type="text" id="{{inputId}}" class="form-control" list="{{suggestionsId}}" placeholder="{{placeholder}}" role="combobox" aria-expanded="false" autocomplete="off" autocorrect="off" autocapitalize="off" aria-autocomplete="list" aria-owns="{{suggestionsId}} {{selectionId}}" {{#tags}}data-tags="1"{{/tags}}/><span class="form-autocomplete-downarrow" id="{{downArrowId}}">&#x25BC;</span>
 {{/showSuggestions}}
 {{^showSuggestions}}
-<input type="text" id="{{inputId}}" placeholder="{{placeholder}}" role="textbox" aria-owns="{{selectionId}}"/>
+<input type="text" id="{{inputId}}" placeholder="{{placeholder}}" role="textbox" aria-owns="{{selectionId}}" {{#tags}}data-tags="1"{{/tags}}/>
 {{/showSuggestions}}
 
 {{#js}}