Skip to content

Commit e5214ed

Browse files
committed
Fix back() callback
1 parent 1d4e48c commit e5214ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monarch/monarch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,12 +991,12 @@ function M.back(options, data, cb)
991991
local screen = table.remove(stack)
992992
if screen then
993993
log("back()", screen.id)
994+
local back_cb = callbacks.track()
994995
local top = stack[#stack]
995996
-- if we go back to the same screen we need to first hide it
996997
-- and wait until it is hidden before we show it again
997998
local same_screen = top and top.id == screen.id
998999
if same_screen or (options and options.sequential) then
999-
local back_cb = callbacks.track()
10001000
back_out(screen, top, WAIT_FOR_TRANSITION, function()
10011001
if data then
10021002
top.data = data

0 commit comments

Comments
 (0)