arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 870 forks source link

onNavigateForward with closeOnSelect closes picker #739

Closed rogeriocsilva closed 4 years ago

rogeriocsilva commented 4 years ago

Hey, I just upgraded this lib to use the onNavigateForward callback, as you mentioned in this issue : https://github.com/arqex/react-datetime/issues/429

What is happening is: when I use the onNavigateForward to update my wrapper internal state, the picker keeps closing. If I only console.log the params (amount and viewMode) it doesn't close. When I removed the closeOnSelect it works as expected.

rogeriocsilva commented 4 years ago

my bad, forgot to upgrade to @latest