We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb9c12 commit a632e25Copy full SHA for a632e25
core/src/components/cron-core.ts
@@ -191,9 +191,9 @@ export function useCron(options: CronOptions) {
191
translate()
192
})
193
194
- segments.forEach((s) => {
+ segments.forEach((s, i) => {
195
watch(s.cron, () => {
196
- s.onChange?.(s, { segmentMap })
+ fields[i].onChange?.(s, { segmentMap })
197
toCron()
198
199
watch(s.error, (value) => {
core/src/components/cron-segment.ts
@@ -88,7 +88,6 @@ export function useCronSegment(options: FieldOptions) {
88
return {
89
id: field.id,
90
items: field.items,
91
- onChange: field.onChange,
92
cron,
93
selected,
94
error,
0 commit comments