Skip to content

Commit

Permalink
fix: initial select taak
Browse files Browse the repository at this point in the history
  • Loading branch information
mguikema committed Sep 24, 2024
1 parent cacda39 commit 5b376b9
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 5b376b9

Please sign in to comment.