1
0
mirror of synced 2025-02-09 16:49:24 +03:00

fix js error that happens when enter is pressed and there is no highlighted option. fixes #1469

This commit is contained in:
Igor Vaynberg 2013-06-27 08:15:30 -07:00
parent 31117f4ca0
commit 76f9bae39a

View File

@ -1653,7 +1653,7 @@ the specific language governing permissions and limitations under the Apache Lic
if (data) {
this.highlight(index);
this.onSelect(data, options);
} else if (options.noFocus) {
} else if (options && options.noFocus) {
this.close();
}
},