aceb8996c1
Update app/javascript/controllers/checkbox_controller.ts Co-authored-by: Paul Chavard <github@paul.chavard.net>
8 lines
228 B
TypeScript
8 lines
228 B
TypeScript
import { ApplicationController } from './application_controller';
|
|
|
|
export class CheckboxController extends ApplicationController {
|
|
onChange() {
|
|
const form = this.element as HTMLFormElement;
|
|
form.requestSubmit();
|
|
}
|
|
}
|