File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/pages/academy/adminPanel/subcomponents/assessmentConfigPanel Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,12 @@ const AssessmentConfigPanel: WithImperativeApi<
280280 [ configs ]
281281 ) ;
282282
283+ // Updates the data passed into ag-grid
284+ // (this is necessary to update the rowIndex in our custom cellRenderer)
285+ const onRowDragLeaveOrEnd = ( event : RowDragEvent ) => {
286+ // gridApi.current?.setRowData(assessmentConfig.current);
287+ } ;
288+
283289 // Updates our local React state whenever there are changes
284290 // to the Assessment Type column.
285291 const onCellValueChanged = ( event : CellValueChangedEvent ) => {
@@ -311,6 +317,8 @@ const AssessmentConfigPanel: WithImperativeApi<
311317 suppressMovableColumns = { true }
312318 suppressPaginationPanel = { true }
313319 onRowDragMove = { onRowDragMove }
320+ onRowDragLeave = { onRowDragLeaveOrEnd }
321+ onRowDragEnd = { onRowDragLeaveOrEnd }
314322 onCellValueChanged = { onCellValueChanged }
315323 />
316324 < div className = "footer-text" >
You can’t perform that action at this time.
0 commit comments