Skip to content

Commit

Permalink
[BUG] Fixed isLoading logic in EuiConfirmModal
Browse files Browse the repository at this point in the history
* Updated isLoading prop to check for input string value.
  • Loading branch information
1Copenut committed Aug 1, 2023
1 parent 90909b6 commit ff296ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-docs/src/views/modal/confirm_modal_loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ export default () => {
buttonColor="danger"
initialFocus="[name=delete]"
confirmButtonDisabled={value.toLowerCase() !== 'delete'}
isLoading={isLoading}
isLoading={value.toLowerCase() !== 'delete' ?? isLoading}
>
<EuiFormRow label="Type the word 'delete' to confirm">
<EuiFieldText
name="delete"
isLoading={isLoading}
isLoading={value.toLowerCase() !== 'delete' ?? isLoading}
value={value}
onChange={onChange}
/>
Expand Down

0 comments on commit ff296ff

Please sign in to comment.