mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
This could have been done with a tiny amount of inline JS, but I went this way in case I needed any special logic for UJS. It turns out we don't.. but it still looks a bit cleaner this way.
8 lines
143 B
JavaScript
8 lines
143 B
JavaScript
import { Controller } from "stimulus";
|
|
|
|
export default class FormController extends Controller {
|
|
submit() {
|
|
this.element.submit();
|
|
}
|
|
}
|