OfficeMomsandDads/scheduler

View on GitHub
app/javascript/controllers/new_need_form_controller.js

Summary

Maintainability
A
0 mins
Test Coverage
import { Controller } from "stimulus"

export default class extends Controller {
  static targets = [ "socialWorkerSelectContainer" ]

  handleOfficeChange(event) {
    $(this.socialWorkerSelectContainerTarget).load('/needs/office_social_workers', {
      office_id: event.target.value
    })
  }
}