Topic: Date picker not retaining the value that we selected on click ok

emmdb priority asked 2 weeks ago


Date picker should not retain the value that we selected but not click on ok instead it should retain value that we passed as in value parameter

** Date picker retaining the value that we selected but not click on ok instead it should retain value that we passed as in value parameter **

*<MDBDatepicker value={datepickerValue} onChange={(date) => setDatepickerValue(date)} /> *


Mateusz Lazaru staff commented 2 weeks ago

I don't fully understand the problem. In this example, datepicker's value will always be equal to the datepickerValue state, which is managed with onChange event.

Could you explain expected behavior in more details?

@edit: I've found your topic with timepicker's related issue, now I know where the problem is. I've added a task to fix it.



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 8.0.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No