fix: sometimes entering default state would not highlight initial state marker
This commit is contained in:
parent
22fbe70a60
commit
373e26dc1b
5 changed files with 44 additions and 28 deletions
|
|
@ -105,10 +105,12 @@ export function App() {
|
|||
};
|
||||
}, []);
|
||||
|
||||
const highlightActive = (rtIdx !== undefined) && new Set([...rt[rtIdx].mode].filter(uid => {
|
||||
const state = ast.uid2State.get(uid);
|
||||
return state && state.parent?.kind !== "and";
|
||||
})) || new Set();
|
||||
// const highlightActive = (rtIdx !== undefined) && new Set([...rt[rtIdx].mode].filter(uid => {
|
||||
// const state = ast.uid2State.get(uid);
|
||||
// return state && state.parent?.kind !== "and";
|
||||
// })) || new Set();
|
||||
|
||||
const highlightActive = (rtIdx === undefined) ? new Set() : rt[rtIdx].mode;
|
||||
|
||||
const highlightTransitions = (rtIdx === undefined) ? [] : rt[rtIdx].firedTransitions;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue