disable paste if text is empty

This commit is contained in:
Peter Cai 2020-02-19 20:43:47 +08:00
parent 0e3224c52f
commit 73de387ec5
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class Pastebin extends React.Component
</LinkButton>
<button
className="button-blue"
disabled={@state.pasting}
disabled={@state.pasting or @state.text.trim() is ""}
onClick={@paste}
>
Paste