"." in Combobox with search continued (Follow-up to answer)

Hello, I’ve tried the answer and it does work. But I also figured out why it was doing it in my case.



I used this XML file with dhtmlXCombo with filtering turned on:



<?xml version="1.0" ?>



    A TOP

    A.W.1

    A.W.2

    A.W.3

    A.W.4

    five

    six

    seven

    eight

    nine

    ten





If I try to type “A.” it’ll automatically change the value to “A TOP”, the problem is with the “A TOP” option before “A.W.1”, it works fine if “A TOP” is below everything else. Any help would be appreciated, thank you for your hard work.

it’ll automatically change the value to "A TOP"
basically it fill input as A. and “TOP” part must be selected, so the next pressed key will overwrite it - if it not selected in your case most probably you have selection disabled for part of page where combo placed.

To resolve problem you can disable pre-selection by locating and commenting next chunk of code (lines 837-840)

     if (text!=data[1]){
               this.setComboText(data[1]);
               dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length);
            }