title: Disable options based on currently selected option with Material UI Autocomplete component
body: <p>I am creating an Autocomplete element using Material UI, React Hook Form, and Yup that allows a user to choose multiple inputs for the days of the week.</p>
  <p>If a user chooses the &quot;Every day&quot; option, I want to disable being able to choose Sunday, Monday, Tues... etc. How would I do that using getOptionDisabled?</p>
  <p>Here is my current code...</p>
  <pre><code>const daysOfWeekSuggestions = [
      {label: &quot;Every day&quot;},
      {label: &quot;Sunday&quot;},
      {label: &quot;Monday&quot;},
      {label: &quot;Tuesday&quot;},
      {label: &quot;Wednesday&quot;},
      {label: &quot;Thursday&quot;},
      {label: &quot;Friday&quot;},
      {label: &quot;Saturday&quot;}
  ];
  
  &lt;Autocomplete
      disableClearable
      disablePortal
      filterSelectedOptions
      multiple
      getOptionLabel={(option) =&gt; option.label}
      id=&quot;days-autocomplete&quot;
      options={daysOfWeekSuggestions}
      renderInput={(params) =&gt; &lt;TextField
          required
          error={errors.daysOfWeek ? true : false}
          id=&quot;daysOfWeek&quot;
          label=&quot;Days of the week&quot;
          name=&quot;daysOfWeek&quot;
          type=&quot;search&quot;
          {...params}
          {...register(&quot;daysOfWeek&quot;)}
      /&gt;}
  /&gt;
  </code></pre>