Firefox: MultiRange Component => TouchEvent is not defined


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

norbertbede pro 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 pro 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
  • User: Pro
  • 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