-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: merging cells onto already merged cells throws error #6599
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
I think the priority here should be test coverage, to confirm that this does actually fix the issue and to make it easier to properly fix the edge case that this fix is avoiding. If the problem is just that the selection is getting lost, I think that should be straightforward to fix properly. |
Understood, I will create a regression test for it. |
After looking closer I think the correct fix here is #6607 but will take some time to write additional tests and probably fix another edge case or two while I'm in there |
If you've managed to allow for merging already merged cells onto unmerged cells without throwing an error then I absolutely agree that's the better fix here. This has been a relatively long-standing issue so I'm glad I was able to get the discussion rolling. I'll do some testing on your PR, thanks @etrepum. Edit: closing this PR in favour of #6607. |
Description
Closes #4470, #5853.
This fix ensures that the merge cells button does not appear when attempting to merge already merged cells onto unmerged cells. This prevents an error from appearing which eventually causes the table to be unusable.
I do see potential for being able to merge already merged cells onto unmerged cells in certain situations, but that should be revisited separately, for now resolving the error is the priority.
Test plan