Incorrect widget ZIndex when using widgets inside conditional blocks
Closed this issue · 0 comments
MrBlackbrow commented
Overview
I noticed that having a widget in a conditional block causes it to have the same widget ZIndex as the first widget after the conditional block.
It seems like a non-trivial issue to solve, so I'd also appreciate any workarounds.
Reproduction steps
- Run this code with Iris
local err = Iris.State(nil)
if Iris.Button("Cause error").clicked() then
err:set("An error has occurred!")
end
if err:get() then
Iris.Text(err:get())
end
Iris.Text("Some text afterwards")