I am on the latest version of liveview and phoenix (updated myself), I'm using the core_components that get's generated when you use phoenix generators.
My input field is not getting reset to Your message... on save.
On save I set the @new_message to to_form(create_new_message(user.user_id)) in the save event_handler. Any advice on how I can debug this is appreciated
my render function
<%= if assigns[:current_user] do %>
<.simple_form
for={@new_message}
class="footer-newsletter-form relative"
phx-submit="save"
phx-change="validate"
>
<.input
type="text"
field={@new_message[:content]}
placeholder="Your message..."
class="text-lgblock w-[400px] text-[14px] h-[50px] pl-[25px] py-[17px] rounded-md border-none bg-[#1f2935] placeholder:text-[14px] focus:ring-[none] focus:!border-none "
/>
<:actions>
<button class=" absolute w-[63px] text-[28px] text-[#1f2935] flex items-center justify-center p-2.5 rounded-md border-[none] right-0 top-0 bg-[#45f882] hover:bg-[#ffbe18] ">
<i class="flaticon-paper-plane"></i>
</button>
</:actions>
</.simple_form>
...
In the event handler (last thing that happens)
{:noreply,
socket
|> assign(:new_message, to_form(create_new_message(user.user_id)))