mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Correct existing subtypes test coverage; add test coverage for
subtype actions; and a subtype action fix.
This commit is contained in:
parent
13d69d8cef
commit
67fb3210ab
3 changed files with 143 additions and 62 deletions
|
@ -43,6 +43,10 @@ export class API {
|
|||
|
||||
static addSubtype = (record: SubtypeRecord, subtypePrepFn: SubtypePrepFn) => {
|
||||
const prep = prepareSubtype(record, subtypePrepFn);
|
||||
if (prep.actions) {
|
||||
h.app.actionManager.registerAll(prep.actions);
|
||||
h.app.actionManager.registerActionGuards();
|
||||
}
|
||||
return prep;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue