You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.12.0
What package has an issue?
@mantine/form
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
When using and uncontrolled form and form.watch will not trigger when form.initialize is called. In this case, the value will correctly update but the change will not be transmitted to the form.watch subscribers.
The expected behavior is the subscribers being called every time the value changes, including by the form initialization using form.initialize.
In the provided codesandbox it is shown an example of a staled value (empty) being rendered because of this problem.
If possible, include a link to a codesandbox with a minimal reproduction
raulfpl
changed the title
form form.watch does not trigger when form.initialize is called
form.watch does not trigger when form.initialize is called
Aug 7, 2024
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.12.0
What package has an issue?
@mantine/form
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
When using and uncontrolled form and form.watch will not trigger when form.initialize is called. In this case, the value will correctly update but the change will not be transmitted to the form.watch subscribers.
The expected behavior is the subscribers being called every time the value changes, including by the form initialization using form.initialize.
In the provided codesandbox it is shown an example of a staled value (empty) being rendered because of this problem.
If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/elegant-saha-h5cs6f
Possible fix
No response
Self-service
The text was updated successfully, but these errors were encountered: