Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Dec 12, 2024
1 parent 85518ab commit a2d91ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sdk-components-react-radix/src/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export const Dialog = forwardRef<
const { renderer } = useContext(ReactSdkContext);

const [open, onOpenChange] = useControllableState({
prop: props.open,
prop: props.open ?? false,
defaultProp: false,
onChange: props.onOpenChange,
});

Expand Down

0 comments on commit a2d91ee

Please sign in to comment.