Skip to content

Commit

Permalink
feat(@dpc-sdp/ripple-nuxt-tide): add support for conditional logic on…
Browse files Browse the repository at this point in the history
… submit button (#1302)

Co-authored-by: David Featherston <david.featherstone@dpc.vic.gov.au>
  • Loading branch information
lambry and David Featherston committed May 26, 2023
1 parent bac183a commit 56dd085
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ripple-nuxt-tide/modules/webform/mapping-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,14 @@ module.exports = {
buttonText: element['#submit__label'] || element['#title'],
loading: false,
autoUpdate: true,
styleClasses: ['form-group--inline']
styleClasses: ['form-group--inline'],
states: element['#states'] || null
},
{
type: 'rplclearform',
buttonText: 'Clear form',
styleClasses: ['form-group--inline']
styleClasses: ['form-group--inline'],
states: element['#states'] || null
}
)
break
Expand Down

0 comments on commit 56dd085

Please sign in to comment.