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
const[Form,formApi]=useVbenForm({// ...handleSubmit: asyncparams=>{// show loading and disable input when submittingformApi.setState({commonConfig: {disabled: true},resetButtonOptions: {disabled: true},submitButtonOptions: {loading: true},})awaitrequestSubmit(params)// submittedformApi.setState({commonConfig: {disabled: false},resetButtonOptions: {disabled: false},submitButtonOptions: {loading: false},})},})
after:
const[Form,formApi]=useVbenForm({// ...handleSubmit: asyncparams=>{// show loading and disable input when submittingformApi.setSubmittingState(true)awaitrequestSubmit(params)// submittedformApi.setSubmittingState(false)},})
Proposed Solution
add an API for quickly set the submitting state in formApi, e.g. formApi.setSubmittingState(<boolean>)
Version
Vben Admin V5
Description
before:
after:
Proposed Solution
add an API for quickly set the submitting state in formApi, e.g.
formApi.setSubmittingState(<boolean>)
Alternatives Considered
No response
Additional Context
No response
Validations
The text was updated successfully, but these errors were encountered: