Browse Source

fix: properly ignore live view updates from affecting the editor elements

main
Inhji Y. 7 months ago
parent
commit
6b4f23bcb9
  1. 6
      lib/mirage_web/live/note_live/form_component.html.leex

6
lib/mirage_web/live/note_live/form_component.html.leex

@ -11,8 +11,10 @@
<%= text_input f, :title, placeholder: "What is this note about?", class: "title" %>
</fieldset>
<%= hidden_input f, :content, class: "editor-content" %>
<div id="editor" phx-update="ignore"></div>
<fieldset phx-update="ignore">
<%= hidden_input f, :content, class: "editor-content" %>
<div id="editor"></div>
</fieldset>
<fieldset phx-update="ignore">
<%= text_input f, :topic_string, id: "tags", placeholder: "Tags, comma-separated" %>

Loading…
Cancel
Save