<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.

1

There are 1 best solutions below

0
Yashashri Pawar On

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' }}
    />