Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Aug 13, 2024
1 parent e27b347 commit 4a18510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -788,8 +788,8 @@ local function parse_callbacks(tree, ctx_form, auto_name_id,
-- Update ctx.form if there is no current value, otherwise
-- change the node's value to the saved one.
local value = ctx_form[node_name]
if node.type == "dropdown" and not node.index_event and
not node._index_event_hack then
if node.type == "dropdown" and (not node.index_event or
node._index_event_hack) then
-- Special case for dropdowns without index_event
local items = node.items or {}
if value == nil then
Expand Down

0 comments on commit 4a18510

Please sign in to comment.