Skip to content

Commit

Permalink
Fixed a fault that prevented the custom trigger "events.onBeforeEvent…
Browse files Browse the repository at this point in the history
…AddEdit" from being called when set.
  • Loading branch information
William Troup committed Oct 17, 2024
1 parent dd07090 commit d4d9fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6106,7 +6106,7 @@ function calendarJs( elementOrId, options, searchOptions ) {
}

function showEventEditingDialog( eventDetails, overrideTodayDate, overrideTimeValues, originDayDate ) {
if ( isFunction( _options.onBeforeEventAddEdit ) ) {
if ( isFunction( _options.events.onBeforeEventAddEdit ) ) {
fireCustomTrigger( _options.events.onBeforeEventAddEdit, eventDetails );
} else {

Expand Down

0 comments on commit d4d9fb2

Please sign in to comment.