mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-01 11:24:57 +01:00
fix: multiple line editor bugs (#9760)
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -225,8 +225,11 @@ export const actionDeleteSelected = register({
|
||||
return false;
|
||||
}
|
||||
|
||||
// case: deleting last remaining point
|
||||
if (element.points.length < 2) {
|
||||
// case: deleting all points
|
||||
if (
|
||||
element.points.length < 2 ||
|
||||
selectedPointsIndices.length === element.points.length
|
||||
) {
|
||||
const nextElements = elements.map((el) => {
|
||||
if (el.id === element.id) {
|
||||
return newElementWith(el, { isDeleted: true });
|
||||
|
||||
Reference in New Issue
Block a user