Skip to content

Commit

Permalink
fix: onclose callback triggered twice
Browse files Browse the repository at this point in the history
  • Loading branch information
amal-k-joy committed Dec 13, 2024
1 parent 36bd4f9 commit 0956199
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 0956199

Please sign in to comment.