Relative Content

Tag Archive for typescriptnext.jsshadcnui

This Form is a children in a Dialog from shadcn, i wan’t it to close when the form is successfully submited

import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage, } from ‘@/components/ui/form’ import { Input } from ‘@/components/ui/input’ import { useForm } from ‘react-hook-form’ import { pecuniaFormSchema } from ‘./PecuniaFormSchema’ import { z } from ‘zod’ import { zodResolver } from ‘@hookform/resolvers/zod’ import { Button } from ‘@/components/ui/button’ import { updateFinancialRequest } from ‘@/app/services/financialService’ import { […]

Button click not registered nextjs shadcn

Hi i am currently working on project where on button click the front end send request to backend and runs a function. I use shadcn default button in my code with onClick event, when i run code on localhost on my pc it works without any problem, but when i host it on vercel and open it on my iphone the button dosen’t work properlly. When it open on iphone sometimes i need to click button 1 time and the function runs sometimes i need to click up to 10 times before the function runs. Does anyone have salutio for this problem?