I am using Ag-Grid with JS.
I have a column to list airports, the list is saved in the airport variable, if I dynamically select an airport I see it visually, but if I click on the cell it, adds the first value of the airport list. What is this due to?
I dynamically added the airport from the change event:
rowData.origin = { airport_id: 1, name: 'Cancun' };
gridApi.applyTransaction({ update: [rowData] });
and if it matches the data, but clicking the cell again adds the first value in the list.