skip to Main Content
<TimePicker
    onChange={handlePickTimeChange}
    placeholder="Start Time"
    format="HH:mm"
    allowClear={true}
    showNow={false}
    showOK={false}
    disabledTime={disabledTime}
    style={{ textShadow: '0px 0px black' }}
/>

showNow={false} this is working in my code but showOK={false} not working, I was written lot’s of logic and trid many times but not happened anything.

I expect who can write correct code for me that will be work properly.

2

Answers


  1. Chosen as BEST ANSWER

    Then, How to remove that OK button from the date picker field, if I select HH:MM that should automatically take without clicking on OK button.


  2. there isn’t a direct prop called showOK to control the visibility of the OK button.

     <TimePicker
          onChange={handlePickTimeChange}
          placeholder="Start Time"
          format="HH:mm"
          allowClear={true}
          showNow={false}
          disabledTime={disabledTime}
          style={{ textShadow: '0px 0px black' }}
        />
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search