diff --git a/src/Pagination.js b/src/Pagination.js index 6d22a3f777..72e8471907 100644 --- a/src/Pagination.js +++ b/src/Pagination.js @@ -16,7 +16,7 @@ const Pagination = React.createClass({ */ boundaryLinks: React.PropTypes.bool, /** - * When `true`, will display the default node value ('...'). + * When `true`, will display the default node value ('…'). * Otherwise, will display provided node (when specified). */ ellipsis: React.PropTypes.oneOfType([ @@ -130,7 +130,7 @@ const Pagination = React.createClass({ disabled buttonComponentClass={buttonComponentClass}> - {this.props.ellipsis === true ? '...' : this.props.ellipsis} + {this.props.ellipsis === true ? '\u2026' : this.props.ellipsis} ); @@ -154,7 +154,7 @@ const Pagination = React.createClass({ disabled buttonComponentClass={buttonComponentClass}> - {this.props.ellipsis === true ? '...' : this.props.ellipsis} + {this.props.ellipsis === true ? '\u2026' : this.props.ellipsis} ); diff --git a/test/PaginationSpec.js b/test/PaginationSpec.js index 4374c2d988..2a04e32032 100644 --- a/test/PaginationSpec.js +++ b/test/PaginationSpec.js @@ -71,7 +71,7 @@ describe('Pagination', () => { assert.equal(pageButtons[0].innerText, '«'); assert.equal(pageButtons[1].innerText, '‹'); - assert.equal(pageButtons[5].innerText, '...'); + assert.equal(pageButtons[5].innerText, '…'); assert.equal(pageButtons[6].innerText, '›'); assert.equal(pageButtons[7].innerText, '»'); @@ -93,8 +93,8 @@ describe('Pagination', () => { let pageButtons = ReactTestUtils.scryRenderedDOMComponentsWithTag(instance, 'li'); // add first, last, prev, next and ellipsis button assert.equal(pageButtons[2].innerText, '1'); - assert.equal(pageButtons[3].innerText, '...'); - assert.equal(pageButtons[7].innerText, '...'); + assert.equal(pageButtons[3].innerText, '…'); + assert.equal(pageButtons[7].innerText, '…'); assert.equal(pageButtons[8].innerText, '20'); });