How to disable <react-date-picker> component on a button click

turn off instant apps
grindr instant app
how to enable an app
how to reinstall youtube
remove instant apps
how to use app without installing
how to reinstall an app
how to reinstall deleted apps

I have used a date picker component from react-date-picker. I need to disable the entire date control and the button itself on a single button click. The button does get disabled but the DatePicker component doesn't. I have tried the following but didn't work. Is there a correct way to do it?

import DatePicker from 'react-date-picker';
this.state = {
  disabledDate: false

  noDateRememberButtonClick() {
      disabledDate: true

    render() {
        <div className="wrapper">
          <div className="date-picker">
              disabled={this.state.disabledDate} />
          <button className="btn" onClick={this.noDateRememberButtonClick} disabled={this.state.disabledDate} type="button"> {BUTTON_LABEL}</button>


react-date-picker doesn't support the disabled prop. See

Per shaz's recommendation, react-datepicker ( does, if you would like to use that component instead

How to disable the lock screen the easy way in Windows 10 , You can disable the unnecessary Windows 10 lock screen without risking an edit of the Registry File. This method is surprisingly simple and� Microsoft doesn’t want you to disable Cortana. You used to be able to turn off Cortana in Windows 10, but Microsoft removed that easy toggle switch in the Anniversary Update. But you can still disable Cortana via a registry hack or group policy setting. This transforms the Cortana box into a “Search Windows” tool for local application and file searches.

Try this. works for me

const CustomInput = (props) => {
    return (
            className={[classes.TransparentInput, "uk-input"].join(" ")}
  customInput={<CustomInput />}
  onChange={e => setFieldValue('from', moment(e).format('L'))}

The setFieldValue is from formik. You can choose not to use formik. your choice.

Delete or disable apps on Android, If you remove an app you paid for, you can reinstall it later without buying it again. You can also disable system apps that came with your phone. Note: You're� Disable definition, to make unable or unfit; weaken or destroy the capability of; incapacitate: The detective successfully disabled the bomb. See more.

As a hacky workaround (don't feel like taking another library), this worked for me:

Add a disabled class on a container, that wraps the DatePicker

.disabled {
  pointer-events: none;

  input {
    background: transparent;
    box-shadow: none;
    border: none;

EDIT: The input styling is only needed, if you wanna make the field look like plain text only.

How to disable 'Suggested Posts' on Instagram: You can't and here's , Hell hath no fury like a userbase scorned, and, unfortunately for Instagram, that's something the company is finding out just a day after� Select Disabled in the radio button on the left. Select Apply and the window will close. You should now see Disabled on the Allow Cortana line rather than Enabled.


How to disable the Google Meet feature from Gmail, Google Meet was recently added to the Gmail suite and you might not like how it gums up the process. Here's how to disable Google Meet from� Define disable. disable synonyms, disable pronunciation, disable translation, English dictionary definition of disable. tr.v. dis·a·bled , dis·a·bling , dis·a·bles 1. To deprive of capability or effectiveness, especially to impair the physical abilities of.

How to Turn Off Google Assistant on Android, This tutorial can turn off Google Assistant for any Android phone including Samsung, Pixel Duration: 1:32 Posted: Aug 18, 2019 McAfee, Norton, AVG, Kaspersky, and Webroot examples. Once the antivirus icon is located, right-click the icon and select Disable, Stop, Shut down, or something similar. In some cases, you may need to open the program and disable it using the program's menus.

How to Disable Apple CarPlay on iPhone, Disable CarPlay From Your iPhone. To easiest way to ensure that CarPlay never automatically starts is by completely disabling the application� To disable notifications for individual apps, head to System > Notifications & Actions, and then scroll down to the “Get notifications from these senders” list. This list shows Windows system features, Store apps, and traditional desktop apps that can send notifications.

Disabling Pop-up Blockers | Technology Help Desk, To turn off pop-up blocker, follow these instructions: Click the Customize and control Google Chrome menu (the three dots in the upper right corner); Select� Synonyms for disable at with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for disable.

  • Just for checking, change the disabled={this.state.disabledDate} for disabled={true}
  • tried this too. Doesn't work
  • Maybe the problem is that you import this component import DatePicker from 'react-date-picker';, and doesnt support disable. Check with this
  • It seems like yes, the feature may not be supported by 'react-date-picker'
  • I rather went for CSS properties to hide it completely instead of using different date picker. But will definitely use different date picker next time.