Closed wer-mathurin closed 8 months ago
in the stack trace I found this
../packages/pluto_grid/src/manager/state/editing_state.dart 244:7 changeCellValue ../packages/pluto_grid/src/ui/cells/text_cell.dart 141:25 [_changeValue] ../packages/pluto_grid/src/ui/cells/text_cell.dart 77:7 dispose
Thsi is cause by
void _changeValue() { if (formattedValue == _textController.text) { return; } =============> widget.stateManager.changeCellValue(widget.cell, _textController.text); <============= _textController.text = formattedValue; _initialCellValue = _textController.text; _textController.selection = TextSelection.fromPosition( TextPosition(offset: _textController.text.length), ); _cellEditingStatus = _CellEditingStatus.updated; }
Adding this check before the offending line resolve the issue
if (!mounted) return;
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Steps to reproduce the bug
Actual results
in the stack trace I found this
../packages/pluto_grid/src/manager/state/editing_state.dart 244:7 changeCellValue ../packages/pluto_grid/src/ui/cells/text_cell.dart 141:25 [_changeValue] ../packages/pluto_grid/src/ui/cells/text_cell.dart 77:7 dispose
Thsi is cause by
Adding this check before the offending line resolve the issue