Suggest selection ?bug?

When using a gridsuggest as a popup for a column in a datatable view if the user types a letter that matches multiple items in the suggest contents the contents of the gridsuggest filter properly but the selection disappears (no items are highlighted). If an item is clicked with the mouse, instead of returning the value of the item selected the first item in the grid is returned. Is this due to improper configuration or is this a bug?

Comments

  • Hello @mdv,

    If an item is clicked with the mouse, instead of returning the value of the item selected the first item in the grid is returned. Is this due to improper configuration or is this a bug?gth

    Unfortunately, I was not able to reproduce this issue based off your description.
    As far as I can see, it works well: https://snippet.webix.com/ya5jao4j
    Is there any chance you could provide the snippet (via our snippet tool ) where the issue can be seen?

  • Here is a snippet that displays the issue
    https://snippet.webix.com/xy7z423v

  • Hello @mdv,
    So the problem in your case is on onEditorChange handler:

    on:{"onEditorChange":function() {this.editStop()}}
    

    The point is that the editStop() method actually "overrides" the value you select ans returns ID of top suggestion from the suggest list.
    Please check the correct example:
    https://snippet.webix.com/l72gezq2

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!