Skip to content

Commit

Permalink
feat(iframe): added new prop allow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Jun 19, 2018
1 parent e8c51f2 commit 11c9a74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/iframe/HtmlIframe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default class HtmlIframe extends React.PureComponent {
scrolling={this.props.scrolling}
sandbox={this.props.sandbox}
frameBorder={this.props.frameBorder}
allow={this.props.allow}
allowFullScreen={this.props.allowFullScreen}
className={helper.cssClasses({
'atm-fill': true
Expand All @@ -111,6 +112,11 @@ export default class HtmlIframe extends React.PureComponent {
${this.props.sandbox ? `sandbox="${this.props.sandbox}"` : ''}
scrolling="${this.props.scrolling || 'no'}"
frameborder="${this.props.frameBorder || '0'}"
${
this.props.allow
? `allow="${this.props.allow}"`
: ''
}
allowfullscreen="${this.props.allowFullScreen || '0'}"
class="${helper.cssClasses('atm-fill atm-loaded')}"
${helper.getAriaProps(this.props)}></iframe>`
Expand Down
2 changes: 2 additions & 0 deletions src/iframe/Iframe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class Iframe extends React.PureComponent {
scrolling: PropTypes.string,
layout: PropTypes.string,
sandbox: PropTypes.string,
allow: PropTypes.string,
allowFullScreen: PropTypes.bool,
resizable: PropTypes.bool,
frameBorder: PropTypes.string,
Expand All @@ -43,6 +44,7 @@ export default class Iframe extends React.PureComponent {
scrolling: 'no',
layout: null,
sandbox: null,
allow: null,
allowFullScreen: null,
resizable: false,
frameBorder: '0',
Expand Down

0 comments on commit 11c9a74

Please sign in to comment.