MDBSelect clearBtn does not call 'onValueChange'


Topic: MDBSelect clearBtn does not call 'onValueChange'

beenham pro premium priority asked 2 years 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 2 years ago

Hi!

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


jlopez994 commented 2 years ago

Hello there,

any progress on this?


Krzysztof Wilk staff commented 2 years 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

Open

Specification of the issue
  • User: Pro
  • 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