mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
add non-redundant titles to page buttons
This commit is contained in:
@@ -30,7 +30,7 @@ class PageButton extends Component {
|
||||
}, className);
|
||||
|
||||
return (
|
||||
<li className={ classes } title={ title }>
|
||||
<li className={ classes } title={`page-${title}`}>
|
||||
<a href="#" onClick={ this.handleClick } className="page-link">{ page }</a>
|
||||
</li>
|
||||
);
|
||||
|
||||
@@ -105,7 +105,7 @@ describe('PageButton', () => {
|
||||
const title = 'aTitle';
|
||||
beforeEach(() => {
|
||||
wrapper = shallow(
|
||||
<PageButton { ...props } active disabled={ false } title={ title } />
|
||||
<PageButton {...props} active disabled={false} title={`page-${ title }`} />
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user