Skip to content

Commit

Permalink
uncomment demo onAddOption
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Aug 24, 2020
1 parent 55f4a8f commit d797e6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/demo/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ jQuery(function($) {
onAddField: fieldId => {
setCurrentFieldIdValues(fieldId)
},
// onAddOption: (optionTemplate, {index}) => {
// optionTemplate.label = optionTemplate.label || `Option ${index + 1}`
// optionTemplate.value = optionTemplate.value || `option-${index + 1}`
onAddOption: (optionTemplate, {index}) => {
optionTemplate.label = optionTemplate.label || `Option ${index + 1}`
optionTemplate.value = optionTemplate.value || `option-${index + 1}`

// return optionTemplate
// },
return optionTemplate
},
onClearAll: () => window.sessionStorage.removeItem('formData'),
stickyControls: {
enable: true,
Expand Down

0 comments on commit d797e6f

Please sign in to comment.