Skip to content

Commit 66d8dbe

Browse files
committed
fix of #433
1 parent 101bfcd commit 66d8dbe

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/controls/iFrameDialog/IFrameDialogContent.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class IFrameDialogContent extends React.Component<IIFrameDialogContentPro
4040
try { // for cross origin requests we can have issues with accessing frameElement
4141
this._iframe.contentWindow.frameElement.cancelPopUp = this.props.close;
4242
this._iframe.contentWindow.frameElement.commitPopUp = this.props.close;
43+
// SP.UI.Dialog has misspelling of commitPopUp
44+
this._iframe.contentWindow.frameElement.commitPopup = this.props.close;
4345
}
4446
catch (err) {
4547
if (err.name !== 'SecurityError') {

src/controls/iFramePanel/IFramePanelContent.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ export class IFramePanelContent extends React.Component<IIFramePanelContentProps
8080
private iframeOnLoad = () => {
8181
try { // for cross origin requests we can have issues with accessing frameElement
8282
this._iframe.contentWindow.frameElement.cancelPopUp = this.props.close;
83+
this._iframe.contentWindow.frameElement.commitPopUp = this.props.close;
84+
// SP.UI.Dialog has misspelling of commitPopUp
85+
this._iframe.contentWindow.frameElement.commitPopup = this.props.close;
8386
}
8487
catch (err) {
8588
if (err.name !== 'SecurityError') {

0 commit comments

Comments
 (0)