Op Builder

Results 39 comments of Op Builder

@Apestein Hope this will be helpful I will return ```undefined``` when the value is not a number and the value will be ```value={field.value ?? ''}``` ```tsx 'use client'; import {...

> const formSchema = z.object({ > temperature: z.coerce.number().min(1, "temperature cann't be zero."), > }) @aynuayex you are using the zod schema to have the temperature with minimum of 1. You...

@YuInseo You can use ```onClose``` event listener which is present in the ```Drawer``` component and will trigger when ever the **Drawer** closes It will work when the drawer closes due...

@phillmorgan28 You are missing the ```asChild``` prop in the ```NavigationMenuLink``` component and use the ```Link``` component as child of ```NavigationMenuLink``` ```tsx export function HeaderNav() { return ( Dashboard ); }...

@Existential-Critic You can use ```onCloseAutoFocus``` event on the ```DialogContent``` component to update the state to the desired value ```tsx export function DialogDemo() { return ( Open console.log('closed')}> Are you absolutely...

@piszczu4 The reason why it is happening is that [radix-ui/dialogs](https://www.radix-ui.com/primitives/docs/components/dialog) uses __*react-portals*__ where the ```Dialog.DialogPortal``` is not present in the ```Original DOM``` but present in the ```Virtual DOM``` and when...

@Rasulwebs For me the side bar stays sticky at the top https://github.com/shadcn-ui/ui/assets/150527559/fa06549a-bfbc-436e-9dac-c3d7d417328d

@MehdiRazaNaqvi Here are the docs on how to trigger a ```Dialog``` through ```DropdownMenuItem``` https://ui.shadcn.com/docs/components/dialog#notes

@udohjeremiah This is an issue with the radix-ui and here is the fix link: https://github.com/radix-ui/primitives/issues/1658#issuecomment-1690666012 ```tsx export function SelectDemo() { return ( Shadcn/ui Shadcn/ui Shadcn/ui Shadcn/ui Shadcn/ui Shadcn/ui { if...

@remainstheday If you think the page layout breaks due to ```position: relative !important;``` on the ```body``` element then you can change the styles by using the below code ```css body[style]...