disable paste if text is empty
This commit is contained in:
parent
0e3224c52f
commit
73de387ec5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue