I’m learning Phoenix while creating a simple chat app. So far I wrote a text input to submit my messages but for some reason, when pressing enter absolutely nothing happens, no event is triggered at all. The text input is written like this:
<% f = form_for :chat, "#", id: "chat-form", phx_submit: :send_message %> <%= text_input f, :message, placeholder: "Type your message" %> </form>
The browser console also shows nothing. Can anyone help me with this?