[GH #2305] Dropdown key value

Tags: #<Tag:0x00007f136ca85788> #<Tag:0x00007f136ca85620>

@aleksandra_budnik

If you change the value of the cell to Mike, lose focus on that cell, and then double click on Mike again, it shows the ID 1 instead of Mike

Hi @tctech

This is not an official version of the key-value dropdown, and if there are any issues related to the use of it I can only recommend checking the cell editor guide https://handsontable.com/docs/cell-editor/#overview. The first thing that comes to my mind is some issue within the getValue()/setValue() methods.

@tctech I just realized the error you are making. You solve it by adding change line 41 with the following statement. Thanks @aleksandra_budnik give me some suggestions

     const index = this.htEditor.getDataAtProp('_id').findIndex(id => id === Number(value));
2 Likes