Autocomplete - IE 9 - select event - A bug and a Fix

2 posts, 0 answers
  1. Sakthivel
    Sakthivel avatar
    6 posts
    Member since:
    Jun 2012

    Posted 14 Jun 2012 Link to this post

    When we press the enter key without selecting any item from the opened list area of an Autocomplete kendo plug-in, we may get an error 
    "Line: 217. Error: Unable to get value of the property 'index': object is null or undefined"
    in IE9. This is because the "item" object of the passed-in parameter "e" is null. The following fixed me this issue.

    if (e.item == null) return;
                    var dataItem = this.dataItem(e.item.index());
    I hope that a developer like me, makes use of this.
  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 18 Jun 2012 Link to this post

    Hello Sakthivel,

    Thank you for drawing attention to this issue. We decided to not raise select event, when end-user enters custom value and press ENTER. Thus the error will not be thrown. I have updated your Telerik points for the report.

    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top