Skip to content

Commit 026a4b6

Browse files
author
Jeff Rooks
committedDec 20, 2019
prevent unnecessary apply events when pressing the enter key
1 parent 5d48fe4 commit 026a4b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/date-range-picker/SDateRangePicker.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@
168168
}
169169
170170
const apply = () => {
171+
if (!canApply()) {
172+
return
173+
}
174+
171175
dispatchEvent("apply", {
172176
startDate: tempStartDate,
173177
endDate: tempEndDate

0 commit comments

Comments
 (0)