Topic: MDBSelect clearBtn does not call 'onValueChange'

beenham priority asked 1 year ago


Expected behavior

When clicking on the 'clearBtn' to call the 'onValueChange'

Actual behavior

When clicking on the clearBtn, the select option is cleared, but the onValueChange is not called, causing a misalignment in the state

Resources (screenshots, code snippets etc.)

  <MDBSelect
    data={[
      { text: 'One', value: 1 },
      { text: 'Two', value: 2 },
      { text: 'Three', value: 3 },
      { text: 'Four', value: 4 }
    ]}
    onValueChange={console.log}
    clearBtn
  />

Krzysztof Wilk staff commented 1 year ago

Hi!

Thanks for reporting that bug. We'll fix it in the next release :)


jlopez994 free commented 1 year ago

Hello there,

any progress on this?


Krzysztof Wilk staff commented 1 year ago

Hi!

It should work now :)



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.0.0
  • Device: PC
  • Browser: Chrome
  • OS: Win11
  • Provided sample code: No
  • Provided link: No