Skip to content

Commit

Permalink
feat(htmliframe): added onload property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Base committed Jun 28, 2018
1 parent c4c74c1 commit 2633253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/iframe/HtmlIframe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default class HtmlIframe extends React.PureComponent {
frameBorder={this.props.frameBorder}
allow={this.props.allow}
allowFullScreen={this.props.allowFullScreen}
onLoad={this.props.onLoad}
className={helper.cssClasses({
'atm-fill': true
})}
Expand Down
2 changes: 2 additions & 0 deletions src/iframe/Iframe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class Iframe extends React.PureComponent {
frameBorder: PropTypes.string,
noloading: PropTypes.bool,
className: PropTypes.string,
onLoad: PropTypes.function,
'data-e2e': PropTypes.string
};
}
Expand All @@ -50,6 +51,7 @@ export default class Iframe extends React.PureComponent {
frameBorder: '0',
noloading: false,
className: '',
onLoad: null,
'data-e2e': null
};
}
Expand Down

0 comments on commit 2633253

Please sign in to comment.