AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
55.68k stars 3.63k forks source link

[Bug] Having a kanban board inside a document causes "/" commands to stop working. #5501

Open Trixe-space opened 3 months ago

Trixe-space commented 3 months ago

Bug Description

Creating a kanban board with "/Create a new Board" or referencing one inside a document with "/Referenced Board" causes all "/" commands to stop working. The only way to fix it is to get rid of the referenced board. This does not effect grids and calendars.

How to Reproduce

Expected Behavior

It should use the "/" properly.

Operating System

Windows 11

AppFlowy Version(s)

0.5.8, 0.5.9

Screenshots

https://github.com/AppFlowy-IO/AppFlowy/assets/121346649/a433d986-ae88-4123-8054-d8fcc1d2d199

Additional Context

No response

zoli commented 1 month ago

This bug still exists and it's not only with board reference, create a grid reference focus on one of cells then focus on document you will see same problem. What I've found is when keayboardService.disable() is called after slash command menu showing (here), Sometimes DatabaseBlockComponentWidget onFocusChange is called which clears the selection and causes the problem of not being able to reference another board or grid.