Skip to content

Commit 05e24ea

Browse files
committed
Merge branch 'dev' into v2
2 parents 4e67af1 + 68df4bf commit 05e24ea

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.JSON

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"`RichText`: Fix \"Align Left\" button [#429](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/429)",
2323
"Documentation update for `FilePicker`: misspelling [#432](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/432)",
2424
"`IFramePanel`: Fix doubled scroll issue when iframe content is higher than frame height [#431](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/431)",
25-
"`PeoplePicker`: `errorMessage` not showing [#420](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/420)"
25+
"`PeoplePicker`: `errorMessage` not showing [#420](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/420)",
26+
"`IFrameDialog`: `commitPopUp` typo causes popups with classic forms to not close after hitting save [#433](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/433)"
2627
]
2728
},
2829
"contributions": [

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)