diff --git a/itemcontroller.lua b/itemcontroller.lua index 7032fff..982ec00 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -212,6 +212,7 @@ local function updatePageRender(state, pages) end local function renderDefault(state, rootElement) + rootElement:setParent(state.monitor) return function() local event = {os.pullEvent()} local handled = rootElement:handleEvent(event) @@ -281,7 +282,6 @@ local PAGES = { end ) pageState.listState = listState - listResult:setParent(state.monitor) return renderDefault(state, listResult) end,