File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export class IFrameDialogContent extends React.Component<IIFrameDialogContentPro
40
40
try { // for cross origin requests we can have issues with accessing frameElement
41
41
this . _iframe . contentWindow . frameElement . cancelPopUp = this . props . close ;
42
42
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 ;
43
45
}
44
46
catch ( err ) {
45
47
if ( err . name !== 'SecurityError' ) {
Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ export class IFramePanelContent extends React.Component<IIFramePanelContentProps
80
80
private iframeOnLoad = ( ) => {
81
81
try { // for cross origin requests we can have issues with accessing frameElement
82
82
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 ;
83
86
}
84
87
catch ( err ) {
85
88
if ( err . name !== 'SecurityError' ) {
You can’t perform that action at this time.
0 commit comments