Skip to content

Commit

Permalink
[base] Use span instead of div as wrapper element in PreviewSubscriber (
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Oct 12, 2017
1 parent 3bbbfc0 commit 42c15b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/base/src/preview/PreviewSubscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export default class PreviewSubscriber extends React.PureComponent {
const {result, isLive, error} = this.state
const {children: Child, ...props} = this.props
return (
<div ref={this.setElement}>
<span ref={this.setElement}>
<Child snapshot={result.snapshot} type={result.type} isLive={isLive} error={error} {...props} />
</div>
</span>
)
}
}

0 comments on commit 42c15b6

Please sign in to comment.