The example form doesn't show a field by default

This commit is contained in:
luk3yx 2024-05-18 19:25:56 +12:00
parent 45363ee461
commit a3523c7073
2 changed files with 3 additions and 3 deletions

View File

@ -993,7 +993,7 @@ local function insert_shorthand_elements(tree)
elseif node.type == "field" then
table.insert(tree, i, {
type = 'field_close_on_enter',
name = field.name,
name = node.name,
close_on_enter = false,
})
end

View File

@ -338,11 +338,11 @@ describe("Flow", function()
gui.Style{selectors = {"test"}, props = {prop = "value"}},
}, ([[
size[3.6,3.6]
field_close_on_enter[4;false]
field_close_on_enter[5;false]
button[0.3,0.3;3,1;;1]
image[0.3,0.3;3,3;2]
field_close_on_enter[4;false]
field[0.3,0.7;3,2.6;4;Test;]
field_close_on_enter[5;false]
field[0.3,0.3;3,3;5;;]
style[\1;bgimg=;bgimg_pressed=]