@bitrise/bitkit 13.48.1-alpha.0 → 13.48.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.48.1-alpha.0",
4
+ "version": "13.48.1-alpha.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -337,7 +337,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
337
337
  <DropdownProvider context={dropdownCtx} styles={dropdownStyles}>
338
338
  <FormControl {...props} isDisabled={disabled} isInvalid={isError}>
339
339
  {label && (
340
- <FormLabel htmlFor={disabled || readOnly ? undefined : buttonId} marginBlockEnd="4">
340
+ <FormLabel htmlFor={buttonId} marginBlockEnd="4">
341
341
  {label}
342
342
  </FormLabel>
343
343
  )}
@@ -91,7 +91,11 @@ const DateInput = forwardRef<DateInputProps, 'div'>((props, ref) => {
91
91
  return (
92
92
  <DatePicker
93
93
  mode="day"
94
- onApply={(day) => setValue(day?.toFormat(dateInputDateFormat) || '')}
94
+ onApply={(day) => {
95
+ const newVal = day?.toFormat(dateInputDateFormat) || '';
96
+ onChange?.(newVal);
97
+ setValue(newVal);
98
+ }}
95
99
  onClose={() => setIsDatePickerVisible(false)}
96
100
  selectable={selectable}
97
101
  selected={currentDate}