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
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' ) {
Original file line number Diff line number Diff 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' ) {
You can’t perform that action at this time.
0 commit comments