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

norbertbede premium asked 1 month 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 1 month 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 1 month ago

thanks we will try, let you know. norbert

Please insert min. 20 characters.


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



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