mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 14:36:21 +00:00
10 lines
242 B
JavaScript
10 lines
242 B
JavaScript
import { Controller } from "@hotwired/stimulus";
|
|
|
|
export default class extends Controller {
|
|
/*
|
|
* Previene el envío de un formulario al presionar enter
|
|
*/
|
|
prevent(event) {
|
|
if (event.key == "Enter") event.preventDefault();
|
|
}
|
|
}
|