浏览代码

Fix to Variable grid form lookups

Kenric Nugteren 2 年之前
父节点
当前提交
9cd42ae72e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      inabox.wpf/DigitalForms/DynamicVariableGrid.cs

+ 1 - 1
inabox.wpf/DigitalForms/DynamicVariableGrid.cs

@@ -209,7 +209,6 @@ namespace InABox.DynamicGrid
                 editor.OnFormCustomiseEditor += (sender, items, column, editor) => Editor_OnFormCustomiseEditor(sender, variables, column, editor);
             }
 
-            editor.Items = new BaseObject[] { item };
             editor.OnDefineLookups += o =>
             {
                 var def = (o.EditorDefinition as ILookupEditor)!;
@@ -260,6 +259,7 @@ namespace InABox.DynamicGrid
                 }
                 return errors;
             };
+            editor.Items = new BaseObject[] { item };
             return editor.ShowDialog() == true;
         }