Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: no focus border on date cells (#1469)

Eakam873a46e4430c
diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/date_cell/date_cell.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/date_cell/date_cell.dart
index 43fdcd647c..64813a5fd5 100644
--- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/date_cell/date_cell.dart
+++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/date_cell/date_cell.dart
@@ -70,17 +70,13 @@ class _DateCellState extends GridCellState<GridDateCell> {
constraints: BoxConstraints.loose(const Size(260, 500)),
margin: EdgeInsets.zero,
child: SizedBox.expand(
- child: GestureDetector(
- behavior: HitTestBehavior.opaque,
- onTap: () => _popover.show(),
- child: Align(
- alignment: alignment,
- child: Padding(
- padding: GridSize.cellContentInsets,
- child: FlowyText.medium(
- state.dateStr,
- overflow: TextOverflow.ellipsis,
- ),
+ child: Align(
+ alignment: alignment,
+ child: Padding(
+ padding: GridSize.cellContentInsets,
+ child: FlowyText.medium(
+ state.dateStr,
+ overflow: TextOverflow.ellipsis,
),
),
),
@@ -108,7 +104,10 @@ class _DateCellState extends GridCellState<GridDateCell> {
}
@override
- void requestBeginFocus() {}
+ void requestBeginFocus() {
+ _popover.show();
+ widget.onCellEditing.value = true;
+ }
@override
String? onCopy() => _cellBloc.state.dateStr;