@syncfusion/ej2-schedule 20.3.52 → 20.3.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -365,9 +365,6 @@ let scrollWidth = null;
365
365
  * @private
366
366
  */
367
367
  function getScrollBarWidth() {
368
- if (scrollWidth !== null) {
369
- return scrollWidth;
370
- }
371
368
  const divNode = createElement('div');
372
369
  let value = 0;
373
370
  divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
@@ -8433,21 +8430,27 @@ class InlineEdit {
8433
8430
  }
8434
8431
  else {
8435
8432
  const subEle = args.element.querySelector('.' + SUBJECT_CLASS);
8436
- const timeEle = args.element.querySelector('.' + APPOINTMENT_TIME);
8437
- subject = subEle.innerText;
8433
+ if (!isNullOrUndefined(subEle)) {
8434
+ addClass([subEle], DISABLE_CLASS);
8435
+ subject = subEle.innerText;
8436
+ }
8437
+ else {
8438
+ subject = args.data[this.parent.eventFields.subject];
8439
+ }
8438
8440
  inlineSubject = createElement('input', { className: INLINE_SUBJECT_CLASS, attrs: { value: subject } });
8439
- addClass([subEle], DISABLE_CLASS);
8440
8441
  if (closest(args.element, '.' + MORE_POPUP_WRAPPER_CLASS)) {
8441
8442
  args.element.insertBefore(inlineSubject, subEle);
8442
8443
  }
8443
8444
  else if (['Agenda', 'MonthAgenda'].indexOf(this.parent.currentView) > -1) {
8444
- const subjectWrap = args.element.querySelector('.' + SUBJECT_WRAP);
8445
+ let subjectWrap = args.element.querySelector('.' + SUBJECT_WRAP);
8446
+ if (isNullOrUndefined(subjectWrap)) {
8447
+ subjectWrap = createElement('div', { className: SUBJECT_WRAP });
8448
+ args.element.prepend(subjectWrap);
8449
+ }
8445
8450
  subjectWrap.insertBefore(inlineSubject, subjectWrap.firstChild);
8446
8451
  }
8447
8452
  else {
8448
- const elementSelector = ['TimelineDay', 'TimelineWeek', 'TimelineWorkWeek', 'TimelineMonth'].indexOf(this.parent.currentView) > -1 ?
8449
- '.e-inner-wrap' : '.e-appointment-details';
8450
- args.element.querySelector(elementSelector).insertBefore(inlineSubject, timeEle);
8453
+ args.element.querySelector('.e-appointment-details').prepend(inlineSubject);
8451
8454
  }
8452
8455
  inlineSubject.focus();
8453
8456
  }
@@ -8587,7 +8590,10 @@ class InlineEdit {
8587
8590
  const inlineSubject = this.parent.element.querySelector('.' + INLINE_SUBJECT_CLASS);
8588
8591
  if (inlineSubject) {
8589
8592
  const appointmentSubject = closest(inlineSubject, '.' + APPOINTMENT_CLASS);
8590
- removeClass([appointmentSubject.querySelector('.' + SUBJECT_CLASS)], DISABLE_CLASS);
8593
+ const subject = appointmentSubject.querySelector('.' + SUBJECT_CLASS);
8594
+ if (!isNullOrUndefined(subject)) {
8595
+ removeClass([subject], DISABLE_CLASS);
8596
+ }
8591
8597
  remove(inlineSubject);
8592
8598
  }
8593
8599
  }