Thanks to visit codestin.com Credit goes to github.com
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 52305fe commit d267998Copy full SHA for d267998
‎client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx
@@ -312,16 +312,11 @@ let CalendarBasicComp = (function () {
312
};
313
showModal(eventInfo, true);
314
} else {
315
- if (onEventVal) {
316
- onEventVal.forEach((event:any) => {
317
- if (event.name === 'doubleClick') {
318
- props.onEvent('doubleClick')
319
- } else {
320
- showModal(editEvent.current as EventType, false);
321
- }
322
- });
+ if (onEventVal && onEventVal.some((e: any) => e.name === 'doubleClick')) {
+ // Check if 'doubleClick' is included in the array
+ props.onEvent('doubleClick');
323
324
- showModal(editEvent.current, false);
+ showModal(editEvent.current as EventType, false);
325
}
326
327
0 commit comments