Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@mantine/core] DatePickerInput: Fix incorrect
aria-label
being set…
… on the input element (#6530) according to accessibility parts of DatePickerInput docs it is said that if `label` prop is set, input will be accessible it is not required to set `aria-label`. But since there was assignment of `aria-label` inside PickerInputBase on Input it essentially overrode the label from InputWrapper connected with `htmlFor` attribute. It made component harder to use inside e2e tests that rely on labels for element locators, since component locator should be dynamic or `aria-label` attribute must be passed alongside with `label` attribute
- Loading branch information