Skip to content

Commit

Permalink
TASK: Dont show close icon when still loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jul 10, 2023
1 parent 82a0cf5 commit 823f2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-ui-components/src/SelectBox/selectBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default class SelectBox extends PureComponent {
}

const mismatchOfValueInOptions = !valueIsEmpty && !selectedOption;
const showResetButton = (allowEmpty && !displayLoadingIndicator && !valueIsEmpty) || mismatchOfValueInOptions;
const showResetButton = (allowEmpty && !valueIsEmpty) || mismatchOfValueInOptions;

return (
<SelectBox_Header
Expand All @@ -295,7 +295,7 @@ export default class SelectBox extends PureComponent {
icon: 'exclamation-triangle'
} : selectedOption
}
showResetButton={showResetButton}
showResetButton={!displayLoadingIndicator && showResetButton}
onReset={this.handleDeleteClick}
onClick={onHeaderClick}
/>
Expand Down

0 comments on commit 823f2fc

Please sign in to comment.