fix clear focus loop

This commit is contained in:
Michael Freno
2025-12-11 22:19:10 -05:00
parent 3498ed7f24
commit 9d8f6aa60d
2 changed files with 2 additions and 2 deletions

View File

@@ -1181,7 +1181,7 @@ end
--- Clear focus from any element
--- Removes keyboard focus from the currently focused element
function flexlove.clearFocus()
Context.clearFocus()
Context.setFocused(nil)
end
flexlove.Animation = Animation

View File

@@ -197,7 +197,7 @@ local function buildMenu()
justifyContent = "center",
alignItems = "center",
alignSelf = "center",
--mode = "retained",
z = 100,
padding = { horizontal = 15, vertical = 15 },
onEvent = function(_, event)
if event.type == "release" then