Fix stackplots static style (#5045)

* [4864] Fixes cancelling edit properties console error
* Get the style receiver when the styleRuleManager is initialized. This prevents any ambiguity about which element should receive the style

* Don't subscribe if the styleRuleManager has been destroyed

Co-authored-by: John Hill <john.c.hill@nasa.gov>
Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov>
Co-authored-by: Nikhil <nikhil.k.mandlik@nasa.gov>
Co-authored-by: Andrew Henry <andrew.k.henry@nasa.gov>
This commit is contained in:
Shefali Joshi
2022-06-03 09:46:27 -07:00
committed by GitHub
parent 04ee6f49d6
commit 40a7451064
4 changed files with 25 additions and 8 deletions

View File

@ -123,6 +123,9 @@ describe('EditPropertiesAction plugin', () => {
}
editPropertiesAction.invoke([domainObject])
.then(() => {
done();
})
.catch(() => {
done();
});
@ -208,6 +211,10 @@ describe('EditPropertiesAction plugin', () => {
};
editPropertiesAction.invoke([domainObject])
.then(() => {
expect(domainObject.name).toEqual(name);
done();
})
.catch(() => {
expect(domainObject.name).toEqual(name);