Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onlyTimepicker option does not work #523

Open
harshil21 opened this issue Jan 30, 2023 · 3 comments
Open

onlyTimepicker option does not work #523

harshil21 opened this issue Jan 30, 2023 · 3 comments

Comments

@harshil21
Copy link

harshil21 commented Jan 30, 2023

Hi, I was wondering if the onlyTimepicker option is working at all? I don't get any output at all. I made a sandbox at https://codesandbox.io/s/onlytimepicker-not-working-sq3obo if you'd like to try out and point where I'm doing something wrong?

@harshil21
Copy link
Author

Okay so apparently if you do both: timepicker: true, onlyTimepicker: true, it works. imo this behaviour doesn't make too much sense to me, it should work when you pass in only onlyTimepicker: true

@t1m0n
Copy link
Owner

t1m0n commented Feb 1, 2023

@harshil21 Hello, yeah, maybe I should reconsider it

@afz
Copy link

afz commented Sep 22, 2023

Hi
I think it's better you add/use two options for time & date:

timepicker
datepicker (default true)

so user if req. time picker, do like this:
{
datepicker: false,
timepicker: true
}

then you can remove "onlyTimepicker" option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants