Topic: Select (multi) not re-rendering correctly after setting value to empty array

BigMonkey pro asked 2 years ago


When working with multi-select if you select more than 1 item and then unselect them all programmatically by passing [] the drop down does not re-render to its original state with label inside it. The dropdown trigger becomes blank and the label outline is still present.

If only 1 item is selected and you unselect it by setting its value to [] than it works correctly, the label moves to the middle of the dropdown trigger and the outline label is removed.

Repeatable every time.


Michał Duszak staff answered 2 years ago


Hello, I couldn't reproduce this issue. Could you please provide a snippet? Here is my attempt: https://mdbootstrap.com/snippets/standard/m-duszak/3590500#js-tab-view



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

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.0
  • Device: Desktop
  • Browser: FF
  • OS: Win 7
  • Provided sample code: No
  • Provided link: No