Commit 1b464c40 authored by Joshua Gould's avatar Joshua Gould

autocomplete npe

parent 0f14a229
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -501,7 +501,7 @@ morpheus.Util.autosuggest = function (options) { ...@@ -501,7 +501,7 @@ morpheus.Util.autosuggest = function (options) {
selectionStart: options.$el[0].selectionStart selectionStart: options.$el[0].selectionStart
}); });
var field = event.toElement.dataset.autocomplete; var field = (event.toElement && event.toElement.dataset) ? event.toElement.dataset.autocomplete : null;
var value = field ? ui.item[field] : ui.item.value; var value = field ? ui.item[field] : ui.item.value;
var show = ui.item.show; var show = ui.item.show;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment