Skip to content

Commit

Permalink
Merge pull request #64 from guxingke201/v1.0.11
Browse files Browse the repository at this point in the history
#65: Array.apply not supported in ie8 in TextBlock even if I add the polyfill (closes #65)
  • Loading branch information
FrancescoCioria authored Dec 20, 2017
2 parents ec63379 + fbf9210 commit 5d1fb9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeholders/TextBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class TextBlock extends React.Component {

getRows = () => {
const { rows, lineSpacing } = this.props;
const range = Array.apply(null, Array(rows)); // eslint-disable-line prefer-spread
const range = [...Array(rows)];
return range.map((x, i) => (
<TextRow
style={this.getRowStyle(i)}
Expand Down

0 comments on commit 5d1fb9a

Please sign in to comment.