Skip to content

Commit

Permalink
fix: Dont allow save whilst options are loading in dropdown (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
matttdawson authored Aug 24, 2023
1 parent 1231d0d commit 3945c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/gridForm/GridFormDropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const GridFormDropDown = <RowType extends GridBaseRow>(props: GridFormDro

const { popoverWrapper } = useGridPopoverHook({
className: props.className,
invalid: () => !!(selectedItem && !subComponentIsValid.current),
invalid: () => !options || !!(selectedItem && !subComponentIsValid.current),
save,
dontSaveOnExternalClick: true,
});
Expand Down

0 comments on commit 3945c4c

Please sign in to comment.