diff --git a/src/machines/overlay.ts b/src/machines/overlay.ts index 6353a023..ac60c36f 100644 --- a/src/machines/overlay.ts +++ b/src/machines/overlay.ts @@ -129,12 +129,10 @@ export const overlayMachine = Machine< }, }, transition: { - on: { - '': [ - { target: 'immediately', cond: 'initiallyOpen' }, - { target: 'smoothly', cond: 'initiallyClosed' }, - ], - }, + always: [ + { target: 'immediately', cond: 'initiallyOpen' }, + { target: 'smoothly', cond: 'initiallyClosed' }, + ], }, immediately: { initial: 'open',