简体   繁体   中英

REACT Antd input field is not editable if has value but if defaultValue no data is showing but editable

If I use value in input field data will show up but field is not editable在此处输入图像描述 在此处输入图像描述

But if I use defaultValue no data is showing but field is editable在此处输入图像描述 在此处输入图像描述

heres getting the value of the input field if it has changes在此处输入图像描述

I dont get it yet why it is behaving like that. I need to show the data in the field at the same time make it editable so that any changes added in the field it will be saved

If I use value in input field data will show up but field is not editable在此处输入图像描述 在此处输入图像描述

But if I use defaultValue no data is showing but field is editable在此处输入图像描述 在此处输入图像描述

heres getting the value of the input field if it has changes在此处输入图像描述

I dont get it yet why it is behaving like that. I need to show the data in the field at the same time make it editable so that any changes added in the field it will be saved

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM