Skip to content

Commit

Permalink
Fix #3365: RowsPerPageDropdown proper aria-label (#3366)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Sep 25, 2022
1 parent d7cdf03 commit 09b2442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/paginator/RowsPerPageDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const RowsPerPageDropdown = React.memo((props) => {
const hasOptions = props.options && props.options.length > 0;
const options = hasOptions ? props.options.map((opt) => ({ label: String(opt), value: opt })) : [];
const ariaLabel = localeOption('choose');
const element = hasOptions ? <Dropdown value={props.value} options={options} onChange={props.onChange} appendTo={props.appendTo} disabled={props.disabled} placeholder={ariaLabel} ariaLabel={ariaLabel} /> : null;
const element = hasOptions ? <Dropdown value={props.value} options={options} onChange={props.onChange} appendTo={props.appendTo} disabled={props.disabled} placeholder={ariaLabel} aria-label={ariaLabel} /> : null;

if (props.template) {
const defaultOptions = {
Expand Down

0 comments on commit 09b2442

Please sign in to comment.