Skip to content

Commit deb5116

Browse files
Jetpack Connection: Disable site URL input while submit is busy (#103516)
* Disable site URL input while submit is busy * Only disable button if it's not busy already --------- Co-authored-by: Gergely Juhasz <[email protected]>
1 parent fd929a5 commit deb5116

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/jetpack-connect/site-url-input.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class JetpackConnectSiteUrlInput extends Component {
179179
}
180180

181181
render() {
182-
const { candidateSites, isFetching, isSearch, translate, url, autoFocus } = this.props;
182+
const { candidateSites, isSearch, translate, url, autoFocus } = this.props;
183183

184184
const isDisabled = this.isFormSubmitDisabled();
185185
const isBusy = this.isFormSubmitBusy();
@@ -196,7 +196,7 @@ class JetpackConnectSiteUrlInput extends Component {
196196
autoCapitalize="off"
197197
autoFocus={ autoFocus } // eslint-disable-line jsx-a11y/no-autofocus
198198
onChange={ this.handleChange }
199-
disabled={ isFetching }
199+
disabled={ isBusy }
200200
placeholder="https://yourjetpack.blog"
201201
onKeyUp={ this.handleKeyPress }
202202
value={ url }
@@ -218,7 +218,7 @@ class JetpackConnectSiteUrlInput extends Component {
218218
<Button
219219
className="jetpack-connect__connect-button"
220220
primary
221-
disabled={ isDisabled }
221+
disabled={ isDisabled && ! isBusy }
222222
busy={ isBusy }
223223
onClick={ this.handleFormSubmit }
224224
>

0 commit comments

Comments
 (0)