Skip to content

Commit 0b84763

Browse files
authored
fix: Error prop not overriding for date-picker (#398)
1 parent b9a0718 commit 0b84763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/raystack/v1/components/calendar/date-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ export function DatePicker({
165165
size="small"
166166
placeholder="Select date"
167167
trailingIcon={showCalendarIcon ? <CalendarIcon /> : undefined}
168-
{...inputFieldProps}
169168
defaultValue={formattedDate}
170169
onChange={handleInputChange}
171170
onFocus={handleInputFocus}
172171
onBlur={handleInputBlur}
173172
error={error}
174173
onKeyUp={handleKeyUp}
175174
className={styles.datePickerInput}
175+
{...inputFieldProps}
176176
/>
177177
);
178178

0 commit comments

Comments
 (0)