Skip to content

Commit ea87483

Browse files
fix: Fix invalid DOM property tabindex error (#2809)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent f3ec3a0 commit ea87483

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/date-picker/DatePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class DatePicker extends React.Component<DatePickerProps, DatePickerState> {
622622

623623
// De-emphasizing the Pikaday date picker because it does not meet accessibility standards
624624
// Screenreaders & navigating via keyboard will no longer pick up on this element
625-
const accessibleAttrs = isAccessible ? { 'aria-hidden': true, tabindex: -1 } : {};
625+
const accessibleAttrs = isAccessible ? { 'aria-hidden': true, tabIndex: -1 } : {};
626626

627627
return (
628628
<PlainButton

src/components/flyout/Flyout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class Flyout extends React.Component<Props, State> {
389389
onMouseEnter: this.handleButtonHover,
390390
onMouseLeave: this.handleButtonHoverLeave,
391391
role: 'button',
392-
tabindex: '0',
392+
tabIndex: '0',
393393
'aria-haspopup': 'true',
394394
'aria-expanded': isVisible ? 'true' : 'false',
395395
};

0 commit comments

Comments
 (0)