issue: Render function from Controller doesn't react on the change in form values. #12266
Replies: 6 comments 1 reply
-
hi, |
Beta Was this translation helpful? Give feedback.
-
Looks like it's a bug. Because in others cases Controller does update the field.value. |
Beta Was this translation helpful? Give feedback.
-
I would like to fix this issue, |
Beta Was this translation helpful? Give feedback.
-
@Gopakuma From my opinion render function should react on each change in the state that is related to the current field. |
Beta Was this translation helpful? Give feedback.
-
field.onChange is the one which updates form values, that clear button would need to attach the onChnage method. |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 @Gopakuma Hi guys, any updates? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.51.5
Codesandbox/Expo snack
https://stackblitz.com/edit/qkhbq8?file=src%2FApp.jsx
Steps to reproduce
Expected behaviour
When user click on "clear icon" the value in the input should be epmty.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions