-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ignore backspace on empty table cells to avoid editor crash #964
fix: ignore backspace on empty table cells to avoid editor crash #964
Conversation
Hi @saif-ellafi seems like the fix works. Although table editing is not supported on mobile yet. The fix does help for some people who would manually want to bring the table editing experience to mobile. I had tested before the fix and after. Before (this was done on the release version of AppFlowy 0.7.3(2907301)) table_cells_delete_breaking_android.mp4After (this was done on AppFlowy-Editor with the example file for desktop) table_cells_delete_breaking_pr_964.mp4@LucasXu0 do you mind confirming if this fix has already been implemented yet? Not sure how far along mobile support for table editing is. |
I did run the tests locally on Arch Linux no errors happened although not sure why the CI test failed. |
Hello @rileyhawk1417 - thanks so much for checking out. Yes with my fixes (also the other PRs are very important), I made it to production for my app and users are fine with it. I have added table controls in the toolbar to add and remove rows and columns and pretty much successful. It doesn't work with the in-place controls like desktop but honestly I find it even better this way through toolbar controls. Best regards |
@saif-ellafi I can confirm that it will fix the table issue. Can you format your code to pass the CI? |
Hi @LucasXu0 - will take a look but the errors say absolutely nothing, apparently failing in the Ubuntu tests, could it be a random error? will run tests locally on my Ubuntu and see.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #964 +/- ##
==========================================
+ Coverage 72.07% 72.24% +0.17%
==========================================
Files 318 318
Lines 15074 15119 +45
==========================================
+ Hits 10864 10923 +59
+ Misses 4210 4196 -14 ☔ View full report in Codecov by Sentry. |
Thank you @LucasXu0 |
…ash (AppFlowy-IO#964)" This reverts commit 09f4b17.
Pressing "delete" (aka Backspace) on Android crashes the editor when called inside the empty cell of a table. It leaves the table in an invalid state, crashing the Editor.
This fix or workaround ignores backspaces called inside table cells at the first offset position of the cursor.
Any suggestions welcome!