-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoform onChangeModel no longer working? #1207
Comments
Hi @mikkelking. Could you maybe provide a reproduction? This prop is not deprecated and #1083 only mentions the incorrect typings, which should not be a problem if you're not using TypeScript. |
@radekmie It's in a private repo - can I add you as a contributor so you can look at it? |
I'd rather not, really. Use our Codesandbox template and see if you can reproduce it there first. |
Of course the sandbox works perfectly. The problem is that I am building the schema dynamically from a definition file, and reproducing the problem isn't easy without pretty much moving all of my code into the sandbox I have the same problem with 3.10.1, 3.10.2 and 4.0 Alpha. It works ok in 3.10.0 But looking at
I see this function, which appears to remove the onChangeModel function from the props
I don't know when that is called, but might this be the problem? |
Nope, the code you listed is correct - we don't want |
I'll close this one for now, but as soon as you'd have a reproduction, please post it here or in a new issue. |
Uniforms 3.10.2
The property onChangeModel is no longer called. There is reference made to it in #1083 which suggests that the property is somehow obsolete due to changes in the typing. The code omits the property, but it would still call it if present.
How do I get around this (short of reverting to an older version?) Is there some way to force the prop onto the object? (I am not using typescript)
The text was updated successfully, but these errors were encountered: