Don't send requests twice (Fixes #1307)

This commit is contained in:
Gregory Schier 2018-12-15 20:34:42 -05:00
parent efdb30a8a5
commit 5adf101d83

View File

@ -37,7 +37,7 @@ type Props = {
type State = {
currentInterval: number | null,
currentTimeout: number | null,
downloadPath: string | null
downloadPath: string | null,
};
@autobind
@ -284,11 +284,11 @@ class RequestUrlBar extends React.PureComponent<Props, State> {
className="urlbar__send-btn"
onContextMenu={this._handleMetaClickSend}
onClick={this._handleClickSend}
type="submit">
type="button">
{downloadPath ? 'Download' : 'Send'}
</DropdownButton>
<DropdownDivider>Basic</DropdownDivider>
<DropdownItem type="submit">
<DropdownItem onClick={this._handleClickSend}>
<i className="fa fa-arrow-circle-o-right" /> Send Now
<DropdownHint hotkey={hotkeys.SEND_REQUEST} />
</DropdownItem>