skip to Main Content

Reactjs – on conditional select input field branch is not a function

I am working on a application based on false i have to display end date. my schema: export const experienceSchema = yup.object().shape({ experience: yup.string().required(), job_title: yup.string().required(), category: yup.string().required(), current_working_status: yup.string().required(), join_date: yup.date().required(), end_date: yup.date().notRequired().when("current_working_status", { is: "false", then: yup.date().required("Please enter…

VIEW QUESTION

Html – Force GIF image reload in React

I need to reload a GIF image (CHECKMARK_ANIMATION_ICON is the source) to start the gif animation every 12 seconds or every time the activeIndex is changing. This is my code: const reloadImgSource = (imgSource) => { setTimeout(() => { setImgSource("");…

VIEW QUESTION

Javascript – Unchecking Radio buttons is not working with React after useeffect

Below is my Form looks like in return section: <Form > <ListGroup > <ListGroup.Item className="text-start" > <div> <Form.Check type="radio" id="0" name="answer" label={questionsJSON.questions[num].answers[0]} value={questionsJSON.questions[num].answers[0]} onChange={e => setSelectedAnswer(e.target.value)} {...{ selectedAnswer } != null ? "checked" : null} /> </div> </ListGroup.Item> <ListGroup.Item className="text-start">…

VIEW QUESTION
Back To Top
Search