Fix bug caused by incompatible behaviour between 1.5 and 1.6
https://hexdocs.pm/phoenix_live_view/js-interop.html\#client-hooks-via-phx-hook
This commit is contained in:
@ -8,7 +8,7 @@ defmodule ClipWeb.BoardLive do
|
|||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~L"""
|
~L"""
|
||||||
<form phx-change="paste">
|
<form phx-change="paste">
|
||||||
<textarea type="text" name="snippet" data-updated-val="<%= @snippet %>" phx-hook="SnippetInput" autocomplete="off"><%= @snippet %></textarea>
|
<textarea type="text" phx-hook="SnippetInput" id="SnippetInput" name="snippet" data-updated-val="<%= @snippet %>" phx-hook="SnippetInput" autocomplete="off"><%= @snippet %></textarea>
|
||||||
</form>
|
</form>
|
||||||
<!-- Current content: < %= @snippet %><br> -->
|
<!-- Current content: < %= @snippet %><br> -->
|
||||||
<button phx-click="normalize">+4930112 -> 0004930112#</button> <button id="copy-button">copy</button> <button id="normcop" phx-click="normalize">+4930112 -> 0004930112# + copy (experimental)</button>
|
<button phx-click="normalize">+4930112 -> 0004930112#</button> <button id="copy-button">copy</button> <button id="normcop" phx-click="normalize">+4930112 -> 0004930112# + copy (experimental)</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user