demarches-normaliennes/app/javascript/controllers/checkbox_controller.ts

9 lines
228 B
TypeScript
Raw Normal View History

import { ApplicationController } from './application_controller';
export class CheckboxController extends ApplicationController {
onChange() {
const form = this.element as HTMLFormElement;
form.requestSubmit();
}
}