-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
select-radio and select-radio-inline not working for update #1703
Comments
Hi @pkumar-uk sorry for the delay I missed this issue. Could you please to ensure proper reproduction add the two autoForm/quickForm defnitions for your insert and update use cases? Thank you, I will then start investigating. |
The following one is another example where it does not work. Please let me know if more information is required. Thanks
|
I tried to reproduce with a fresh new repo but for me the update form actually updated the document. Can you take the time and create a minimal GitHub repo, containing only the insertform and update form to allow me to reproduce this issue? Please also do not include any other fields, than the ones involved in the issue (the select radio fields) to avoid any side-effect. |
I think the issue is not that. The update does work. It is just that in update mode the radio field does not get populated with old value, when Autoform is opened in update mode. If you are not seeing in your code, I will create a min GitHub repo. |
Please find mini repo https://github.com/pkumar-uk/testapp.git Not very neat but will help you see the issue. Insert some records and try updating. The radio type input is not initialised. |
Please let me know if more information is needed. |
Hey @pkumar-uk the problem lies within the theme and the bootstrap custom radio-button component and not AutoForm itself. Let me check, if there is a potential solution to this |
Created a fix here: Meteor-Community-Packages/meteor-autoform-themes#5 Please checkout and review, if possible so it can be merged and published soon |
Apologies for not looking at this issue as I had an workaround. I want to confirm that I have tested the changes and they seem to be working |
It should be fixed in version |
Problem -
Autoform field defined with input type as 'select-radio' or 'select-radio-inline' works well while inserting but does not populate the value of the field in 'update' mode. If the field type is changed to 'select' in update mode the old value is populated.
Meteor version 2.0
AutoForm 7.0.0
The text was updated successfully, but these errors were encountered: