Skip to content

Commit

Permalink
bug fix : PopoverContent
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelilahOu committed Oct 11, 2023
1 parent 169553d commit 4b7f771
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file modified src-tauri/stocker.sqlite
Binary file not shown.
2 changes: 2 additions & 0 deletions src/components/OrderCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ onBeforeMount(async () => {
invoke<{ label: string; value: string }[]>("get_all_products"),
]);
console.log(res);
if (res[0].status === "fulfilled") sellers.value = res[0].value;
if (res[1].status === "fulfilled") products.value = res[1].value;
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/popover/PopoverContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const emitsAsProps = useEmitAsProps(emits);
<template>
<PopoverPortal>
<PopoverContent
v-bind="{ ...props, ...emitsAsProps, $attrs }"
v-bind="{ ...props, ...emitsAsProps }"
:class="
cn(
'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
Expand Down

0 comments on commit 4b7f771

Please sign in to comment.