Topic: Console error with placeDropdown(eventType) in Edge

GUIProgrammer free asked 5 years ago


Expected behavior

Should work in Edge according to the chart of listed browsers

Actual behavior

Console error from this function listed in question title (placeDropdown(eventType))

Resources (screenshots, code snippets etc.)

...options is causing SCRIPT1028: SCRIPT1028: Expected identifier, string or number

function placeDropdown(eventType) {
    // Check for simultaneous focus and click events.
    if (eventType === 'focus') {
      isFocused = true;
    } // Check html data attributes


    updateOptions(); // Set Dropdown state

    activates.addClass('active');
    origin.addClass('active'); // Constrain width

    if (options.constrain_width === true) {
      activates.css('width', origin.outerWidth());
    } else {
      activates.css('white-space', 'nowrap');
    }

    updatePosition(origin, activates); // Show dropdown

    activates.stop(true, true).css('opacity', 0).slideDown({
      queue: false,
      duration: options.inDuration,
      easing: 'easeOutCubic',

      complete() {
        $(this).css('height', '');
      }

    }).animate({
      opacity: 1,
  ...(options.resetScroll && {
        scrollTop: 0
      })
    }, {
      queue: false,
      duration: options.inDuration,
      easing: 'easeOutSine'
    });
  }

GUIProgrammer free commented 5 years ago

Updated to 4.9.0


Grzegorz Bujański staff commented 5 years ago

Hi,

I understand that the update to 4.9.0 solved the problem?

Best, Grzegorz.


GUIProgrammer free commented 5 years ago

Yes, it is working.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.11
  • Device: Laptop
  • Browser: Microsoft Edge
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No