Completed
Last Updated: 06 Sep 2018 07:42 by ADMIN
ADMIN
Vessy
Created on: 10 Oct 2017 09:35
Category: AutoCompleteBox
Type: Bug Report
0
JS error is thrown then backspace is pressed after deleting a token
Error message: "Unable to get property 'get_index' of undefined or null reference"

Video: https://www.screencast.com/t/SmoOmyopjOJg

Steps to reproduce:
1. Open http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx

2. Search for item in the Tone-enabled AutoCompleteBox

3. Choose an item from the result

4. Delete the token

5. Press Backspace

Result: A JS error is thrown:

"Unable to get property 'get_index' of undefined or null reference"
1 comment
ADMIN
Peter Milchev
Posted on: 05 Sep 2018 13:32
Workaround: 
<script>
    Telerik.Web.UI.RadAutoCompleteBox.prototype.original_onRemoveLinkClick = Telerik.Web.UI.RadAutoCompleteBox.prototype._onRemoveLinkClick
    Telerik.Web.UI.RadAutoCompleteBox.prototype._onRemoveLinkClick = function (e) {
        if (!this._enabled) {
            return;
        }
        this.original_onRemoveLinkClick.call(this,e);
        e.stopPropagation();
    }
</script>