score:0
Accepted answer
i referred the docs and the solution was to use fields in <form>
tag.
the only code that i added is
<form
form={form}
labelcol={{ span: 7 }}
wrappercol={{ span: 10 }}
layout="horizontal"
colon={true}
onfinish={onfinish}
size="large"
fields={[
{
name: ["project_name"],
value: data.project_name,
},
{
name: ["project_description"],
value: data.project_description
},
{
name: ["project_name_space"],
value: data.project_name_space
},
{
name:["project_language"],
value:data.project_language
}
]}
>
score:0
you should use initalvalues
in form component. here is details how to use ant design form initialvalue
Source: stackoverflow.com
Related Query
- value prop does not show data in Input in Ant Design
- Ant Design Input Component not updating value
- Updating initialValues prop on Formik Form does not update input value
- in react when I remove a dynamic input, the input does not show the right value on the browser
- Ant Design Dynamic Data does not binds to Select
- Input key loses focus on typing and does not show input value in react
- Ant design multiple select does not accept array as default value
- Why does my Form Data Value does not correspond to submitted Input Value?
- React Ant Design type input value not clear
- React-select does not show the selected value in the field
- React - setting input value with JavaScript does not trigger 'onChange'
- CSS Modules + Ant design in ReactJs does not work
- defaultValue of Input not working correctly on ant design
- Ant design date and time pickers do not pass value through Formik (react)
- React | Ant design select value not setting
- Ant Design- autocomplete need to not show value
- Ant Design table continues to show loading even when the table is populated by data
- Prop passed to child component does not change its value in child upon updating prop in parent
- React-Hook Form with useFieldArray: TextField value does not show up in the console. How can I fix it?
- Change html attribute value does not have data with onclick event using react
- Value from input field does not display
- chartjs plugin datalabels does not show value on charts
- Ant design table row merge based on data instead of index value
- Ant Design does not work in react js project
- Why does React.js axios data show in console but not on the screen?
- React Select does not show the value when selected
- Ant design Form validation is not working and not updating input values when component is from a state that is passed from a function
- Test that a component does not render when passed a certain prop value with enzyme
- React Query return undefined data while in network tab the data exists but it does not show on the page
- the changed value does not show in Dom
More Query from same tag
- Testing Reselect Selectors
- How to prevent infinite re-rendering with useEffect() in React
- React globalThis reverting to initial value
- Strip tag from text (in React JS)
- Canceling setTimeout early
- ReactJS: render private route if authenticated after promise resolved
- Unable to set Auth Headers using Apollo Client 3 and setContext (apollo-link-context)
- Set Array of Object return empty array in React
- Calling setState() in a function, and proceeding to the next sibling function after state has changed- is it possible?
- My React component is re-rendering, cannot figure out why
- How to extract React library to separate bundle?
- I am Getting undefined when trying to get the value of my useParams() in Reactjs
- How to get lat lang of top left and bottom right of map when zoomed
- A Query on lists in React
- React JS React Query's useMutation: Unable to retrieve the response from the server within the onError callback
- Why this CardMedia doesn't show image on resource folder?
- how to evenly center image and text on the page
- State object not updating with response data in function call
- How to sort json array by date value dd/mm/yyyy to update React state
- CSS-Grid -OR- Reactjs breaks Object-fit:contain?
- Page is rendering but not components although everything compiles and styles can be added outside the component
- How to define conditional string types in Typescript like flow?
- Calculate new width on resize for a React hook
- How to use async/await promises with React props/state?
- Start a cloned creat-react-app from Github
- Axios get request returns undefined for the first time in React
- Dynamic Multiple textfield reactjs
- TypeError: Text.isText is not a function
- How to include DropdownList chosen item id value into Api function to extract another table from DB using Axios in React?
- How can I get rid of input field in KeyboardDatePicker from Material UI?