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

How to disable <Clock/> component? #9

Closed
ivanfr90 opened this issue Aug 16, 2018 · 2 comments
Closed

How to disable <Clock/> component? #9

ivanfr90 opened this issue Aug 16, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@ivanfr90
Copy link

ivanfr90 commented Aug 16, 2018

Hi!

There are any posibility to disable the display of the clock component when pick into input? I need to use only the input.

I've tried with the following props without lucky

isOpen={false}
clockIcon={null}

Thanks!

@wojtekmaj
Copy link
Owner

wojtekmaj commented Aug 19, 2018

Hello,
for the moment it's not possible - I'd use

.react-time-picker__clock { display: none; }

as a workaround. I'll keep your suggestion in mind though!

@wojtekmaj wojtekmaj self-assigned this Aug 19, 2018
@wojtekmaj wojtekmaj added the question Further information is requested label Aug 19, 2018
@wojtekmaj wojtekmaj changed the title Disable <Clock/> component How to disable <Clock/> component? Aug 19, 2018
@wojtekmaj
Copy link
Owner

wojtekmaj commented Sep 3, 2018

Hi @ivanfr90, starting with v2.7.0 you can use disableClock prop.

@wojtekmaj wojtekmaj reopened this Sep 3, 2018
@wojtekmaj wojtekmaj added the enhancement New feature or request label Sep 3, 2018
@wojtekmaj wojtekmaj modified the milestones: 2.6.0, 2.7.0 Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants