chore: remove focus when starting to create a card from the bottom (#6709)

This commit is contained in:
Richard Shiue 2024-11-04 09:30:32 +03:00 committed by GitHub
parent 939e28d2e1
commit f00e1ebf20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class BoardActionsCubit extends Cubit<BoardActionsState> {
}
void startCreateBottomRow(String groupId) {
emit(const BoardActionsState.setFocus(groupedRowIds: []));
emit(BoardActionsState.startCreateBottomRow(groupId: groupId));
emit(const BoardActionsState.initial());
}

View File

@ -534,7 +534,9 @@ class _BoardColumnFooterState extends State<BoardColumnFooter> {
color: Theme.of(context).hintColor,
),
onTap: () {
setState(() => _isCreating = true);
context
.read<BoardActionsCubit>()
.startCreateBottomRow(widget.columnData.id);
},
),
),