MDL-51841 forms lib: Autocomplete fields work with spaces.
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -606,14 +606,14 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
|
||||
});
|
||||
var selectionElement = $(document.getElementById(selectionId));
|
||||
// Handle clicks on the selected items (will unselect an item).
|
||||
selectionElement.parent().on('click', '[role=listitem]', function(e) {
|
||||
selectionElement.on('click', '[role=listitem]', function(e) {
|
||||
// Get the item that was clicked.
|
||||
var item = $(e.currentTarget);
|
||||
// Remove it from the selection.
|
||||
deselectItem(inputId, selectionId, item, originalSelect, multiple);
|
||||
});
|
||||
// Keyboard navigation for the selection list.
|
||||
selectionElement.parent().on('keydown', function(e) {
|
||||
selectionElement.on('keydown', function(e) {
|
||||
switch (e.keyCode) {
|
||||
case KEYS.DOWN:
|
||||
// Choose the next selection item.
|
||||
|
||||
Reference in New Issue
Block a user