[GH-ISSUE #7213] [Bug] Cant delete text using backspace in grid rows 'open as page' #3190

Closed
opened 2026-03-23 21:28:13 +00:00 by mirror · 4 comments
Owner

Originally created by @hellconnon on GitHub (Jan 15, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7213

Bug Description

When having a Page open from the grid, when deleting a character using backspace the application does not react.
An error is printed to the console:

{"msg":"[REFRESH_USER_PROFILE - END]","time":"01-15 02:05:16","target":"flowy_user::user_manager::manager"}
flutter: Provider<SharedEditorContext> not found for PageBlockComponent
flutter: #0      Provider._inheritedElementOf (package:provider/src/provider.dart:343)
flutter: #1      Provider.of (package:provider/src/provider.dart:293)
flutter: #2      ReadContext.read (package:provider/src/provider.dart:649)
flutter: #3      _backspaceToTitle (package:appflowy/plugins/document/presentation/editor_plugins/base/cover_title_command.dart:25)
flutter: #4      backspaceToTitle.<anonymous closure> (package:appflowy/plugins/document/presentation/editor_plugins/base/cover_title_command.dart:16)
flutter: #5      KeyboardServiceWidgetState._onKeyEvent (package:appflowy_editor/src/editor/editor_component/service/keyboard_service_widget.dart:161)
flutter: #6      _HighlightModeManager.handleKeyMessage (package:flutter/src/widgets/focus_manager.dart:2073)
flutter: #7      KeyEventManager._dispatchKeyMessage (package:flutter/src/services/hardware_keyboard.dart:1100)
flutter: #8      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:1172)
flutter: #9      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:235)
flutter: #10     _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:581)
flutter: #11     _invoke2 (dart:ui/hooks.dart:344)
flutter: #12     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45)
flutter: #13     _Channel.push (dart:ui/channel_buffers.dart:135)
flutter: #14     ChannelBuffers.push (dart:ui/channel_buffers.dart:343)
flutter: #15     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750)
flutter: #16     _dispatchPlatformMessage (dart:ui/hooks.dart:257)
flutter: Another exception was thrown: Instance of 'DiagnosticsProperty<void>'

image

How to Reproduce

Open AppFlowy, run in anonymous mode, add a page, add a grid on the page, add a row, open the row as page, insert title and text, try to delete the text using backspace.
This bug only effects pages within a grid, even opened as full page instead of the overlay.

Expected Behavior

When trying to delete text the text then should be deleted.

Operating System

NixOS

AppFlowy Version(s)

0.7.1

Screenshots

No response

Additional Context

I am also using Hyprland, i haven't tried it on GNOME or another DE, i will and report back.
Edit: I have tried it on GNOME and this does not affect the bug at all.

Originally created by @hellconnon on GitHub (Jan 15, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7213 ### Bug Description When having a Page open from the grid, when deleting a character using backspace the application does not react. An error is printed to the console: ```sh {"msg":"[REFRESH_USER_PROFILE - END]","time":"01-15 02:05:16","target":"flowy_user::user_manager::manager"} flutter: Provider<SharedEditorContext> not found for PageBlockComponent flutter: #0 Provider._inheritedElementOf (package:provider/src/provider.dart:343) flutter: #1 Provider.of (package:provider/src/provider.dart:293) flutter: #2 ReadContext.read (package:provider/src/provider.dart:649) flutter: #3 _backspaceToTitle (package:appflowy/plugins/document/presentation/editor_plugins/base/cover_title_command.dart:25) flutter: #4 backspaceToTitle.<anonymous closure> (package:appflowy/plugins/document/presentation/editor_plugins/base/cover_title_command.dart:16) flutter: #5 KeyboardServiceWidgetState._onKeyEvent (package:appflowy_editor/src/editor/editor_component/service/keyboard_service_widget.dart:161) flutter: #6 _HighlightModeManager.handleKeyMessage (package:flutter/src/widgets/focus_manager.dart:2073) flutter: #7 KeyEventManager._dispatchKeyMessage (package:flutter/src/services/hardware_keyboard.dart:1100) flutter: #8 KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:1172) flutter: #9 BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:235) flutter: #10 _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:581) flutter: #11 _invoke2 (dart:ui/hooks.dart:344) flutter: #12 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45) flutter: #13 _Channel.push (dart:ui/channel_buffers.dart:135) flutter: #14 ChannelBuffers.push (dart:ui/channel_buffers.dart:343) flutter: #15 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750) flutter: #16 _dispatchPlatformMessage (dart:ui/hooks.dart:257) flutter: Another exception was thrown: Instance of 'DiagnosticsProperty<void>' ``` ![image](https://github.com/user-attachments/assets/349718dd-1b43-4b98-a4ad-37ba15fea0c3) ### How to Reproduce Open AppFlowy, run in anonymous mode, add a page, add a grid on the page, add a row, open the row as page, insert title and text, try to delete the text using backspace. This bug only effects pages within a grid, even opened as full page instead of the overlay. ### Expected Behavior When trying to delete text the text then should be deleted. ### Operating System NixOS ### AppFlowy Version(s) 0.7.1 ### Screenshots _No response_ ### Additional Context I am also using Hyprland, i haven't tried it on GNOME or another DE, i will and report back. Edit: I have tried it on GNOME and this does not affect the bug at all.
Author
Owner

@asjqkkkk commented on GitHub (Jan 15, 2025):

Hi @hellconnon , while the backspace isn't working, have you tried to focus on the title by clicking with the mouse and deleting it again? Does it work?

<!-- gh-comment-id:2591488538 --> @asjqkkkk commented on GitHub (Jan 15, 2025): Hi @hellconnon , while the backspace isn't working, have you tried to focus on the title by clicking with the mouse and deleting it again? Does it work?
Author
Owner

@hellconnon commented on GitHub (Jan 15, 2025):

Hey, the second half is more interesting as it shows the exception, when i press backspace.
I haven't tried the newest Version, so that might do the trick, i can try in the evening and report back.

https://github.com/user-attachments/assets/7490a230-1d92-42b0-9731-6ab233eb91ed

<!-- gh-comment-id:2592217116 --> @hellconnon commented on GitHub (Jan 15, 2025): Hey, the second half is more interesting as it shows the exception, when i press backspace. I haven't tried the newest Version, so that might do the trick, i can try in the evening and report back. https://github.com/user-attachments/assets/7490a230-1d92-42b0-9731-6ab233eb91ed
Author
Owner

@hellconnon commented on GitHub (Jan 15, 2025):

As far as i can tell the bug does no longer occur in version 0.8.0, but thanks for the quick reply.

<!-- gh-comment-id:2593955394 --> @hellconnon commented on GitHub (Jan 15, 2025): As far as i can tell the bug does no longer occur in version 0.8.0, but thanks for the quick reply.
Author
Owner

@hellconnon commented on GitHub (Jan 15, 2025):

I will close this now.

<!-- gh-comment-id:2593957255 --> @hellconnon commented on GitHub (Jan 15, 2025): I will close this now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3190
No description provided.