You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Navigate to above URL using Google Chrome browser.
Open DevTools and set Network connection to "Fast 3G"
Click on Run to start the demo.
Now, quickly type "Choco" and it variations 2-3 times and observe that first item under suggestions suddenly gets highlighted w/o pressing arrow keys. Press Enter key and the value gets selected which is an unexpected behavior since the actual search term is lost and replaced by an item which user did not selected in first place.
Issue 2
Follow steps 1-4 mentioned in Issue 1.
Now, focus out of control to close suggestion box.
Again, focus in on control and press down arrow key to open suggestion box. Make sure none of the item is highlighted/selected when the box opens.
Now, select the partial search text using keyboard (Ctrl+A) and observe that first item in suggestion box gets highlighted/selected upon pressing Enter key.
Expected/desired behavior
Items under suggestion box should not automatically get highlighted/selected based on partial search text or by just selecting the partial search text using keyboard.
Workaround
Uncommenting following lines under dataBound handler in demo seems to fix Issue 1:
Line 1
$("li", e.sender.ul).removeClass("k-state-focused").removeAttr("id");
Line 2
$("#products_listbox").data("kendoStaticList")._current = null;
OR
e.sender.ul.data("kendoStaticList")._current = null;
@jignesh-dalal Thank you for this report. I increased the priority of the related issue you previously found and added more detailed steps for reproduction. The issue is still reproducible. I am closing this issue as duplicate. You may track the other issue's progress.
Reproduction of the problem
Demo: https://dojo.telerik.com/@jignesh.h.dalal/IPiSugAH
Issue 1
Issue 2
Expected/desired behavior
Items under suggestion box should not automatically get highlighted/selected based on partial search text or by just selecting the partial search text using keyboard.
Workaround
Uncommenting following lines under dataBound handler in demo seems to fix Issue 1:
Line 1
$("li", e.sender.ul).removeClass("k-state-focused").removeAttr("id");
Line 2
$("#products_listbox").data("kendoStaticList")._current = null;
OR
e.sender.ul.data("kendoStaticList")._current = null;
Environment
AutoCompleteIssues.zip
The text was updated successfully, but these errors were encountered: