mdb-select-2 Bug - Does not update selected option when valu


Topic: mdb-select-2 Bug - Does not update selected option when value is 0

Wanderson pro asked 4 years ago

Expected behavior

Define the following matrix:

options = [ { value: 0, label: 'Percentual %' }, { value: 1, label: 'Valor fixo R$' } ];

When the formControl value is set to 0, the component does not update the selection, but works for any other value.

Actual behavior

When setting the value of the formControl to 0, the selection must be set according to the informed value.

I could change the values ​​to values ​​greater than zero, but this data is synchronized in the database which would force me to write several conversion codes

Resources (screenshots, code snippets etc.) enter image description here


Arkadiusz Idzikowski staff answered 4 years ago

@Wanderson We are already aware of this problem and it should be fixed in the next update.


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: 10.1.1
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No