Skip to content

Commit

Permalink
💫 Update: Ex - Test06
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Mar 30, 2023
1 parent 6c97bb9 commit be99494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/src/examples/Test06/ModalGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ModalGroup = React.forwardRef<ModalGroupHandle, ModalGroupProps>(
setCurrentModalIndex(nextModalIndex);
modalRef.setVisibility(true);
}}
onPressClosePrevModal={(modalIndex) => {
onPressClosePrevModal={async (modalIndex) => {
const prevModalIndex = modalIndex - 1;

const prevModalRef = modalRefs.current[`${prevModalIndex}`];
Expand All @@ -74,7 +74,8 @@ export const ModalGroup = React.forwardRef<ModalGroupHandle, ModalGroupProps>(
return;
}

prevModalRef.setVisibility(false);
await prevModalRef.setVisibility(false);
setCurrentModalIndex(prevModalIndex);
}}
/>
</ModalView>
Expand Down

0 comments on commit be99494

Please sign in to comment.