Skip to content

Commit

Permalink
fix: onclose callback triggered twice (#6582)
Browse files Browse the repository at this point in the history
  • Loading branch information
amal-k-joy authored Dec 17, 2024
1 parent 747dca0 commit 8361907
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export let InterstitialScreen = React.forwardRef<
className // Apply any supplied class names to the main HTML element.
)}
size="lg"
onClose={onClose}
onClose={handleClose}
open={isOpen}
ref={_forwardedRef}
aria-label={interstitialAriaLabel}
Expand All @@ -317,7 +317,6 @@ export let InterstitialScreen = React.forwardRef<
headerClassName
)}
iconDescription={closeIconDescription}
buttonOnClick={handleClose}
>
{headerTitle && <h2>{headerTitle}</h2>}
{!hideProgressIndicator && (
Expand Down

0 comments on commit 8361907

Please sign in to comment.