Explorar o código

using createSendUpdateAction to update selected

namnguyen hai 7 meses
pai
achega
e89e7264a3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      frontend/taipy-gui/src/components/Taipy/MenuCtl.spec.tsx

+ 3 - 1
frontend/taipy-gui/src/components/Taipy/MenuCtl.spec.tsx

@@ -63,6 +63,9 @@ describe("MenuCtl Component", () => {
                     className: "",
                     className: "",
                     inactiveIds: ["id1", "id2"],
                     inactiveIds: ["id1", "id2"],
                     label: "MenuCtl",
                     label: "MenuCtl",
+                    onChange: undefined,
+                    selected: [],
+                    selectedUpdateVars: "",
                     lov: [
                     lov: [
                         {
                         {
                             children: [],
                             children: [],
@@ -87,7 +90,6 @@ describe("MenuCtl Component", () => {
                     ],
                     ],
                     onAction: "on_action",
                     onAction: "on_action",
                     width: "15vw",
                     width: "15vw",
-                    selectedIds: [],
                 },
                 },
                 type: "SET_MENU",
                 type: "SET_MENU",
             });
             });