Browse Source

feat: add hook and phx_ignore to note form

main
Inhji Y. 8 months ago
parent
commit
de059a6793
  1. 5
      lib/mirage_web/live/note_live/form_component.html.leex

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

@ -4,14 +4,15 @@
id: "note-form",
phx_target: @myself,
phx_change: "validate",
phx_submit: "save" %>
phx_submit: "save",
phx_hook: "NoteForm" %>
<fieldset>
<%= text_input f, :title, placeholder: "What is this note about?", class: "title" %>
</fieldset>
<%= hidden_input f, :content, class: "editor-content" %>
<div id="editor"></div>
<div id="editor" phx-update="ignore"></div>
<fieldset>
<%= text_input f, :topic_string, placeholder: "Tags, comma-separated" %>

Loading…
Cancel
Save