do not act on input blank.

This commit is contained in:
fiatjaf
2023-03-25 14:42:28 -03:00
parent c2a826e854
commit b94219512f
2 changed files with 3 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ object Main extends IOWebApp {
cls := "w-full max-h-96 p-3 rounded",
styleAttr := "min-height: 280px; font-family: monospace",
spellCheck := false,
placeholder := "paste something nostric",
placeholder := "paste something nostric (event JSON, nprofile, npub, nevent etc or hex key or id)",
onInput --> (_.foreach(_ =>
self.value.get.flatMap(store.input.set)
)),