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
The tricky part is to find a way to bind the modal OK and Cancel click events so they behave as form buttons and trigger validation correctly. The Ant example accomplishes this using form.refs after using Form.Create to create a modal wrapping a form. It's not clear that Antizer's create-form can handle this wrapped form creation. It's documentation says that form.create 'Calls Form.create() decorator with the form to be created. form can be any hiccup form.'.
I'd love there to be a Form inside Modal example :)
I'm using Rum.
The text was updated successfully, but these errors were encountered:
Just noticed that the Rum documentation for create-form is different and allows the creation of any rum/defcs component - which could include a modal wrapped form. Assuming that's ok in rum, the remaining issue is the use of form.refs.
I had no success with a modal wrapped form - create-form did not cope - so have resorted to hiding the buttons supplied by ant/modal and using the form buttons direct.
I'm finding it tricky to understand what is necessary to duplicate https://ant.design/components/form/#components-form-demo-form-in-modal using Antizer's create-form approach.
The tricky part is to find a way to bind the modal OK and Cancel click events so they behave as form buttons and trigger validation correctly. The Ant example accomplishes this using form.refs after using Form.Create to create a modal wrapping a form. It's not clear that Antizer's create-form can handle this wrapped form creation. It's documentation says that form.create 'Calls Form.create() decorator with the form to be created. form can be any hiccup form.'.
I'd love there to be a Form inside Modal example :)
I'm using Rum.
The text was updated successfully, but these errors were encountered: