Fix Transition undefined/null bug
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
show: boolean | undefined,
|
show: boolean | undefined,
|
||||||
openClosedState: State | undefined
|
openClosedState: State | undefined
|
||||||
): boolean | undefined {
|
): boolean | undefined {
|
||||||
if (show === null && openClosedState !== undefined) {
|
if (show === undefined && openClosedState !== undefined) {
|
||||||
return match(openClosedState, {
|
return match(openClosedState, {
|
||||||
[State.Open]: true,
|
[State.Open]: true,
|
||||||
[State.Closed]: false,
|
[State.Closed]: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user