dwyl / dwyl/phoenix-liveview-chat-example

example no js to reset input

Open
#88 5 comments 1 reaction 1 assignee Assigned to @ndrean View on GitHub
chore enhancement T5m
Dominant language
Elixir
Stars
162
Forks
12
Avg merge
1d 9h
Merged PRs (30d)
3

Description

An example of code without the JS reset in the branch "example-no-js"

Changed the input and add `value: @message` (and add `message` in `assigns` on mount).
Add a `phx-change` to validate before save, and on save, reset `assign message: ""`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.