fix focus big - caused bug in immediate mode input fields

This commit is contained in:
Michael Freno
2025-12-13 15:13:29 -05:00
parent 6901021b03
commit 607ca1aa03
2 changed files with 4 additions and 85 deletions

View File

@@ -460,6 +460,10 @@ function flexlove.beginFrame()
-- Restore retained top-level elements
flexlove.topElements = retainedTopElements
-- Clear focused element at start of frame in immediate mode
-- Elements will restore their focus state during construction via setState()
Context._focusedElement = nil
Context.clearFrameElements()
end