mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: move elementLocked to activeTool.locked (#4983)
* refactor: move elementLocked to activeTool.locked * fix * fix snap * update docs * Update src/packages/excalidraw/CHANGELOG.md * revert * make lastActiveToolBeforeEraser required and nullable * fix snap
This commit is contained in:
parent
1331cffe93
commit
2fa69ddc32
14 changed files with 199 additions and 113 deletions
|
@ -220,7 +220,7 @@ export const ShapesSwitcher = ({
|
|||
});
|
||||
}
|
||||
setAppState({
|
||||
activeTool: { type: activeToolType },
|
||||
activeTool: { ...activeTool, type: activeToolType },
|
||||
multiElement: null,
|
||||
selectedElementIds: {},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue