mdb-select valueChanges doesn't fire if value is 0


Topic: mdb-select valueChanges doesn't fire if value is 0

mdb2 pro asked 6 years ago

mdb-select valueChanges doesn't fire if value is 0 I emailed demo app to Damian

tommyw pro premium priority commented 6 years ago

Seems to be the same for '' which I use for "All" option when filtering.

Arkadiusz Idzikowski staff answered 6 years ago

Dear mdb2, The 'value' property must be a string, not a number. You should also add BrowserAnimationsModule to your app.module file so that the select animation works correctly. Best, Arek

mdb2 pro commented 6 years ago

Oopsi. Thanks

tommyw pro premium priority answered 6 years ago

I use numeric values to bind to enum on the backend - seems to work fine. But '' does not work to bind on, never fires.

Arkadiusz Idzikowski staff commented 6 years ago

Dear tommyw, If you noticed any problems in our select component please give us more details on this subject. Best, Arek

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