Skip to content

Commit

Permalink
chore: remove focus when starting to create a card from the bottom (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
richardshiue authored Nov 4, 2024
1 parent 939e28d commit f00e1eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
),
),
Expand Down

0 comments on commit f00e1eb

Please sign in to comment.