Send content only when enter is pressed. Do not send anything beforehand.
This is an alternative to using Html.Events.onInput to update the model with
incomplete content on every keystroke and then using another event handler to
indicate that the content collected in the model is now complete.
Instead, we only send content to update when the content is ready to be
consumed.
Send content only when enter is pressed. Do not send anything beforehand.
This is an alternative to using
Html.Events.onInputto update the model with incomplete content on every keystroke and then using another event handler to indicate that the content collected in the model is now complete.Instead, we only send content to
updatewhen the content is ready to be consumed.See
../examples/onEnterSend.elmfor a working example.