Morning, I have a drop down menu in my table. But it won’t go away. It’s getting stuck when it’s open and won’t let me select another row.
var container = document.getElementById(‘example’), hot;
var hot = new Handsontable(container, {
data: @Html.Raw(Json.Encode(Model.Decisions)),
afterChange: function( changes, source ) {
var decision = hot.getDataAtCell( currentRow, 0 );
var reason = hot.getDataAtCell( currentRow, 1 );
var temp = getReasonFromDecision(decision, reason);
hot.setDataAtCell(currentRow, 1, temp);
},
colHeaders: ['Decision','Reason'],
columns:[
{
data: 'Decision',
type: 'dropdown',
source:getDecision()
},
{
data: 'Reason',
type: 'dropdown',
source: getReason()
}
}
]
});
However if I take the afterchange code out, it does go away. How should I correct this please?