Skip to content

Commit

Permalink
fix: selecting last field id when running in advanced bootstrap mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Feb 20, 2024
1 parent 9be72d3 commit 8153745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ export default class Helpers {
config.opts.notify.warning('Removing last field since no ID was supplied.')
config.opts.notify.warning('Available IDs: ' + availableIds.join(', '))
fieldID = form.lastChild.id
fieldID = availableIds[availableIds.length-1]
}

const field = document.getElementById(fieldID)
Expand Down

0 comments on commit 8153745

Please sign in to comment.