evancz / elm-architecture-tutorial

How to create modular Elm code that scales nicely with your app
https://guide.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
4.17k stars 738 forks source link

Small error in 07-websockets.elm #114

Closed bxqgit closed 7 years ago

bxqgit commented 7 years ago

The view function contains the line:

[ input [onInput Input] []

But looks like it should be:

[ input [onInput Input, value model.input] []

So that the input field clears after the Send action.

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.