Skip to content

Commit 188f58f

Browse files
author
Amr Fouad
committed
close popup when commitPopup sent (when click ok on new alert for example)
1 parent 31bb2a0 commit 188f58f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controls/iFrameDialog/IFrameDialogContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export class IFrameDialogContent extends React.Component<IIFrameDialogContentPro
3939
private _iframeOnLoad(): void {
4040
try { // for cross origin requests we can have issues with accessing frameElement
4141
this._iframe.contentWindow.frameElement.cancelPopUp = this.props.close;
42+
this._iframe.contentWindow.frameElement.commitPopUp = this.props.close;
4243
}
4344
catch (err) {
4445
if (err.name !== 'SecurityError') {

0 commit comments

Comments
 (0)