fix clear focus loop
This commit is contained in:
@@ -1181,7 +1181,7 @@ end
|
|||||||
--- Clear focus from any element
|
--- Clear focus from any element
|
||||||
--- Removes keyboard focus from the currently focused element
|
--- Removes keyboard focus from the currently focused element
|
||||||
function flexlove.clearFocus()
|
function flexlove.clearFocus()
|
||||||
Context.clearFocus()
|
Context.setFocused(nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
flexlove.Animation = Animation
|
flexlove.Animation = Animation
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ local function buildMenu()
|
|||||||
justifyContent = "center",
|
justifyContent = "center",
|
||||||
alignItems = "center",
|
alignItems = "center",
|
||||||
alignSelf = "center",
|
alignSelf = "center",
|
||||||
--mode = "retained",
|
z = 100,
|
||||||
padding = { horizontal = 15, vertical = 15 },
|
padding = { horizontal = 15, vertical = 15 },
|
||||||
onEvent = function(_, event)
|
onEvent = function(_, event)
|
||||||
if event.type == "release" then
|
if event.type == "release" then
|
||||||
|
|||||||
Reference in New Issue
Block a user