import { Controller } from "stimulus"; export default class extends Controller { /* * Previene el envĂ­o de un formulario al presionar enter */ prevent(event) { if (event.key == "Enter") event.preventDefault(); } }