Disabled Date Picker is still interactive #4730
Labels
community
For issues that have been raised by folks outside the core Salt team
component: date picker
package: lab
Lab package
status: awaiting triage
Automatically added to new issues. Should be removed once they have been triaged.
Latest version
Description
When setting
disabled
onDatePicker
, it only disables the calendar icon in the input, but the date input is still receiving focus. You can obviously set the same onDatePickerSingleInput
, but the misaligned disable behavior between focus and icon is confusing.Steps to reproduce
<DatePicker selectionVariant="single" disabled>
https://stackblitz.com/edit/salt-template-jndhv5y2?file=src%2FApp.tsx,package.json
Expected behavior
Setting
disabled
should disable the full component.Also,
onClick
event shouldn't be triggered.Package name(s)
Lab (@salt-ds/lab)
Package version(s)
1.0.0-alpha.60
Browser
Operating system
Are you a JPMorgan Chase & Co. employee?
The text was updated successfully, but these errors were encountered: