Skip to content

Commit 87555f8

Browse files
committed
Fix native input not having aria-label applied properly
1 parent 0d99583 commit 87555f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DateTimeInput/NativeInput.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import {
1010
import { isMaxDate, isMinDate, isValueType } from '../shared/propTypes';
1111

1212
export default function NativeInput({
13+
ariaLabel,
1314
disabled,
1415
maxDate,
1516
minDate,
1617
name,
17-
nativeInputAriaLabel,
1818
onChange,
1919
required,
2020
value,
@@ -53,7 +53,7 @@ export default function NativeInput({
5353
return (
5454
<input
5555
type="datetime-local"
56-
aria-label={nativeInputAriaLabel}
56+
aria-label={ariaLabel}
5757
disabled={disabled}
5858
max={maxDate ? nativeValueParser(maxDate) : null}
5959
min={minDate ? nativeValueParser(minDate) : null}
@@ -74,11 +74,11 @@ export default function NativeInput({
7474
}
7575

7676
NativeInput.propTypes = {
77+
ariaLabel: PropTypes.string,
7778
disabled: PropTypes.bool,
7879
maxDate: isMaxDate,
7980
minDate: isMinDate,
8081
name: PropTypes.string,
81-
nativeInputAriaLabel: PropTypes.string,
8282
onChange: PropTypes.func,
8383
required: PropTypes.bool,
8484
value: PropTypes.oneOfType([

0 commit comments

Comments
 (0)