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
{{ message }}
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.
If the key is of the form "model", it works fine and the model is bound to an array based on the selected checkboxes
But when key is of the form "model.something", it gets bound to a boolean instead of an array, and all the checkboxes get selected or de-selected at once.
The text was updated successfully, but these errors were encountered:
Could you please reproduce your issue using issue.angular-formly.com? It will help us determine what exactly the problem is that you're describing and how it could be fixed. Thanks!
When you provide a key that's nested this code runs to replace any instance of ng-model in the template with 'model.' + options.key.
With this template the ng-model needs to actually remain the same.
So I suggest that we add a value in extras of fields to disable/control (via a function) the manipulation of nested keys and then utilize that in the defaultOptions of this type.
i resolved this issue on my local enviroment. I had to make some adjustments in formlyCore to accomodate the use case, as well as modifying the multiCheckbox controller.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Noticed an error with multi select.
If the key is of the form "model", it works fine and the model is bound to an array based on the selected checkboxes
But when key is of the form "model.something", it gets bound to a boolean instead of an array, and all the checkboxes get selected or de-selected at once.
The text was updated successfully, but these errors were encountered: