Skip to content

Commit

Permalink
Merge pull request #405 from forza-mor-rotterdam/fix/select-taak
Browse files Browse the repository at this point in the history
fix: initial select taak
  • Loading branch information
mguikema authored Sep 24, 2024
2 parents 75ce88c + 5b376b9 commit e8fe8cc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ export default class extends Controller {
setTimeout(() => this.taaktypeSearchTarget.focus(), 1)
}

this.selectCorrespondingOnderwerpGerelateerdTaaktype()
this.selectCorrespondingTaaktype()
this.selectCorrespondingAfdeling()
const selectedAfdeling = this.afdelingFieldTarget.querySelector('input:checked')
if (selectedAfdeling) {
this.filterTaaktypes(selectedAfdeling.value)
}
this.setSubmitButton()
}

handleTaaktypeChoices() {
const self = this

this.afdelingFieldTarget.addEventListener('change', () => {
this.afdelingFieldTarget.addEventListener('change', (event) => {
const selectedAfdeling = event.target.value
self.clearSearch()

Expand Down

0 comments on commit e8fe8cc

Please sign in to comment.