File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
components/applications/pomodoro Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 3
3
<div class =" inline-flex flex-col" >
4
4
<WlLabel ref =" startDateRef" for =" pomodoro-record-details-start" >Start</WlLabel >
5
5
<WlTimeInput
6
- id =" pomodoro-record-details-start" v-model =" startDate" show-seconds
7
- @keyup.enter =" listeners.enterStartDate"
6
+ id =" pomodoro-record-details-start" v-model =" startDate" show-seconds
7
+ @keyup.enter =" listeners.enterStartDate"
8
8
/>
9
9
</div >
10
10
<div class =" inline-flex flex-col" >
11
11
<WlLabel ref =" endDateRef" for =" pomodoro-record-details-end" >End</WlLabel >
12
12
<WlTimeInput
13
- id =" pomodoro-record-details-end" v-model =" endDate" show-seconds
14
- @keyup.enter =" listeners.enterEndDate"
13
+ id =" pomodoro-record-details-end" v-model =" endDate" show-seconds
14
+ @keyup.enter =" listeners.enterEndDate"
15
15
/>
16
16
</div >
17
17
<div class =" inline-flex flex-col" >
@@ -109,6 +109,11 @@ const listeners = {
109
109
}
110
110
},
111
111
close() {
112
+ if (document .activeElement ?.tagName === ' INPUT' ) {
113
+ // Avoids a copy operation will close the record.
114
+ return
115
+ }
116
+
112
117
emits (' close' )
113
118
}
114
119
}
You can’t perform that action at this time.
0 commit comments