Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

fix animation on index select box

Guy Ben-Aharond41f0c44f501
diff --git a/src/components/select-box/select-box.tsx b/src/components/select-box/select-box.tsx
index f88d9766..a5e09d86 100644
--- a/src/components/select-box/select-box.tsx
+++ b/src/components/select-box/select-box.tsx
@@ -41,6 +41,7 @@ interface SelectBoxProps {
showClear?: boolean;
keepOrder?: boolean;
disabled?: boolean;
+ onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement>;
}
export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>(
@@ -61,6 +62,7 @@ export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>(
showClear,
keepOrder,
disabled,
+ onAnimationEnd,
},
ref
) => {
@@ -210,6 +212,7 @@ export const SelectBox = React.forwardRef<HTMLInputElement, SelectBoxProps>(
<PopoverContent
className="w-fit min-w-[var(--radix-popover-trigger-width)] p-0"
align="center"
+ onAnimationEnd={onAnimationEnd}
>
<Command
filter={(value, search) =>
diff --git a/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-index/table-index.tsx b/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-index/table-index.tsx
index 55204f0a..6a01b516 100644
--- a/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-index/table-index.tsx
+++ b/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-index/table-index.tsx
@@ -42,6 +42,7 @@ export const TableIndex: React.FC<TableIndexProps> = ({
<SelectBox
className="flex h-8 min-h-8 min-w-0 flex-1"
multiple
+ onAnimationEnd={(e) => e.stopPropagation()}
oneLine
options={fieldOptions}
placeholder={t(