Skip to content

Commit

Permalink
Capture loop context with button info
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro committed Mar 26, 2024
1 parent d0ec688 commit a2cda23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mixins/Json2Vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default {
return str.replace(/\.\d/g, match => `[${match.substr(1)}]`);
},
submit(eventData, loading = false, buttonInfo = null) {
if (buttonInfo && this.loopContext) {
buttonInfo.loopContext = this.loopContext;
}
this.$emit('submit', this.value, loading, buttonInfo);
},
buildComponent(definition) {
Expand Down

0 comments on commit a2cda23

Please sign in to comment.