From dd1bd4f69cc11afaa4d776779227cd7e8ed0f811 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 28 Oct 2022 09:18:50 -0700 Subject: [PATCH] clear input post value after submission --- webv2/damus.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webv2/damus.js b/webv2/damus.js index 6a399c1..892f548 100644 --- a/webv2/damus.js +++ b/webv2/damus.js @@ -360,6 +360,8 @@ async function send_post() { post.sig = await sign_id(privkey, post.id) pool.send(["EVENT", post]) + + input_el.value = "" } function render_home_view(model) {