Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Firefox: MultiRange Component => TouchEvent is not defined

norbertbede premium asked 6 months ago


Expected behavior fix bug

Actual behavior

new bug: Rendering MultiRange Component in Mac and Using Firefox browser is throwing error:

Uncaught ReferenceError: TouchEvent is not defined - mdb-angular-ui-kit-multi-range.mjs:125:20 when trying to move slider.

Error is throwing in version 6.1.0. and 6.0.0.


Arkadiusz Idzikowski staff answered 6 months ago


We managed to reproduce this bug but it looks like we will need to update the component code in order to fix the issue. We are not yet able to say when exactly a new version containing this fix will be released.

As a workaround for now, please try to add this code to the component/components in which you use the <mdb-multi-range>. For example in the ngOnInit hook:

  ngOnInit(): void {
    for (const type of ['TouchEvent']) {
      if (typeof window[type] === 'undefined') {
        window[type] = function () {};
      }
    }
  }

norbertbede premium commented 6 months ago

thanks we will try, let you know. norbert



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 6.1.0
  • Device: ANY
  • Browser: Firefox
  • OS: ANY
  • Provided sample code: No
  • Provided link: No