Skip to content

Commit 695bc2c

Browse files
authored
fix(RelativeRangeDatePicker): close popup on select preset (#111)
1 parent 27390e5 commit 695bc2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/RelativeRangeDatePicker/components/PickerDialog/PickerDialog.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ function DialogContent(
136136
{type: 'relative', value: start},
137137
{type: 'relative', value: end},
138138
);
139+
if (!props.withApplyButton) {
140+
props.onApply();
141+
}
139142
}}
140143
minValue={props.minValue}
141144
docs={props.docs}

0 commit comments

Comments
 (0)