dwyl / phoenix-liveview-chat-example

💬 Step-by-step tutorial creates a Chat App using Phoenix LiveView including Presence, Authentication and Style with Tailwind CSS

Home Page:https://liveview-chat-example.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use hooks to reset message value

SimonLab opened this issue · comments

commented

Phoenix liveview doesn't change any input with focus.
This means that when a message is sent with the enter key, the message field still contain the text and the user is forced to delete it before writing a new message.

This is a good example to show how to use Phoenix Hooks with liveView

commented

resolved with #11