Skip to content

Commit 6e0e094

Browse files
committed
[refactor] Fix failing tests
1 parent ac90370 commit 6e0e094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@mantine/dates/src/components/DateInput/DateInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const DateInput = factory<DateInputFactory>((_props, ref) => {
183183
setInputValue(val);
184184
setDropdownOpened(true);
185185

186-
if (val.trim() === '' && allowDeselect) {
186+
if (val.trim() === '' && (allowDeselect || clearable)) {
187187
setValue(null);
188188
} else {
189189
const dateValue = _dateParser(val);

0 commit comments

Comments
 (0)