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: mdb-select - ERROR ReferenceError: event is not defined

vizmedia pro asked 7 years ago


Welcome.use of a component
<mdb-select class="select" placeholder="Wybierz styl" (selected)="selected(theme)" [(ngModel)]="theme" id="themePicker" [options]="themes"></mdb-select>
Under Firefox  (in Chrome everything is OK)generates an error: - generates an error:
ERROR ReferenceError: event is not defined
Ślad stosu:../../../../../src/app/typescripts/pro/material-select/select.component.ts/SelectComponent.prototype.closeSelect@http://localhost:4200/main.bundle.js:22060:13View_SettingsComponent_0/<@ng:///AppModule/SettingsComponent.ngfactory.js:181:31handleEvent@http://localhost:4200/vendor.bundle.js:121457:98callWithDebugContext@http://localhost:4200/vendor.bundle.js:122918:39debugHandleEvent@http://localhost:4200/vendor.bundle.js:122506:12dispatchEvent@http://localhost:4200/vendor.bundle.js:118050:12renderEventHandlerClosure/<@http://localhost:4200/vendor.bundle.js:118661:20decoratePreventDefault/<@http://localhost:4200/vendor.bundle.js:135556:53../../../../zone.js/dist/zone.js/</</ZoneDelegate.prototype.invokeTask@http://localhost:4200/polyfills.bundle.js:10610:17onInvokeTask@http://localhost:4200/vendor.bundle.js:113324:24../../../../zone.js/dist/zone.js/</</ZoneDelegate.prototype.invokeTask@http://localhost:4200/polyfills.bundle.js:10609:17../../../../zone.js/dist/zone.js/</</Zone.prototype.runTask@http://localhost:4200/polyfills.bundle.js:10377:28../../../../zone.js/dist/zone.js/</</ZoneTask.invokeTask@http://localhost:4200/polyfills.bundle.js:10684:24invokeTask@http://localhost:4200/polyfills.bundle.js:11612:9globalZoneAwareCallback@http://localhost:4200/polyfills.bundle.js:11630:17
ERROR CONTEXT Object { view: Object, nodeIndex: 59, nodeDef: Object, elDef: Object, elView: Object }
in a simplified version similarly:
<mdb-select [options]="themes" placeholder="Choose your option"></mdb-select>
What can this result from?

Dawid Adach pro commented 7 years ago

Dear vizmedia, this issue has been fixed in version 4.3.7

Witold Tkaczyk free answered 7 years ago


Hi vizmedia ,

 

Thank you for reporting. We will fix this in next realise, if you want to fix this temporarily simply replace "$event" to "event" in   ng-mdb-pro/pro/material-select/select.component.ts:88.

 

Regards



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: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No
Tags