Author Topic: select event of autoCompleteEditor in column  (Read 1505 times)

juroinstruments

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 9
    • View Profile
select event of autoCompleteEditor in column
« on: September 01, 2021, 11:35:51 am »
on 8.0 version custom editor demo page, select event of 'autoCompleteEditor' is not fired when 'enter' key down on drop down list.
on 6.0 demo page, it works well.
the test code is below.

Code: [Select]
        function autoCompleteEditor( source ) {
            return function (ui) {
                ui.$cell.addClass('ui-front');//so that dropdown remains with input.           

                //initialize the editor
                ui.$editor.autocomplete({
                    //appendTo: ui.$cell, //for grid in maximized state.
                    source: source,
                    position: {
                        collision: 'flipfit',
                        within: ui.$editor.closest(".pq-grid")
                    },
                    selectItem: { on: true }, //custom option
                    highlightText: { on: true }, //custom option
                    minLength: 0,
    select: function(){ //not fired when enter key down
console.log("select event");
    },
                }).focus(function () {
                    //open the autocomplete upon focus               
                    $(this).autocomplete("search", "");
                });
            }
        }
« Last Edit: September 01, 2021, 12:13:40 pm by juroinstruments »

juroinstruments

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: select event of autoCompleteEditor in column
« Reply #1 on: September 23, 2021, 10:42:13 am »
When could you reply to this post?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: select event of autoCompleteEditor in column
« Reply #2 on: September 23, 2021, 04:24:47 pm »
the issue is reproducible and would be resolved in upcoming version.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: select event of autoCompleteEditor in column
« Reply #3 on: October 06, 2021, 09:09:23 am »
this issue is fixed in v8.1.1