fix(xo-web/DropdownButton): add required id
prop (#5628)
See https://react-bootstrap.netlify.app/components/dropdowns/#dropdown-button-props
This commit is contained in:
parent
a4b209c654
commit
eeebd3fc1b
@ -744,6 +744,7 @@ class SortedTable extends Component {
|
||||
onSelect,
|
||||
paginationContainer,
|
||||
shortcutsTarget,
|
||||
stateUrlParam,
|
||||
} = props
|
||||
const { all, itemsPerPage } = state
|
||||
const groupedActions = this._getGroupedActions()
|
||||
@ -769,7 +770,7 @@ class SortedTable extends Component {
|
||||
)
|
||||
|
||||
const dropdownItemsPerPage = (
|
||||
<DropdownButton bsStyle='info' title={itemsPerPage}>
|
||||
<DropdownButton bsStyle='info' id={stateUrlParam} title={itemsPerPage}>
|
||||
{ITEMS_PER_PAGE_OPTIONS.map(nItems => (
|
||||
<MenuItem key={nItems} onClick={() => this._setNItemsPerPage(nItems)}>
|
||||
{nItems}
|
||||
|
@ -1187,7 +1187,7 @@ export default class Home extends Component {
|
||||
<Button onClick={this._expandAll}>
|
||||
<Icon icon='nav' />
|
||||
</Button>{' '}
|
||||
<DropdownButton bsStyle='info' title={homeItemsPerPage}>
|
||||
<DropdownButton bsStyle='info' id='itemsPerPage' title={homeItemsPerPage}>
|
||||
{ITEMS_PER_PAGE_OPTIONS.map(nItems => (
|
||||
<MenuItem key={nItems} onClick={() => this._setNItemsPerPage(nItems)}>
|
||||
{nItems}
|
||||
|
Loading…
Reference in New Issue
Block a user