title: why MUI datepicker not working in production?
body: <p>I'm using MUI datepicker along with React hook form, I'm using <strong>@mui/lab/AdapterMoment</strong> as date adaptor.</p>
  <p>In local environment, datepicker's onChange is working fine. But when it is built and deployed in production, onChange is not working so if I click on a date nothing is happening. I tested react hook and it seems to be working fine. Can anyone help me figure out this issue?</p>
  <pre><code>&lt;LocalizationProvider dateAdapter={DateAdapter}&gt;
                &lt;Controller
                  name=&quot;reminderFromDate&quot;
                  control={control}
                  rules={{
                    required: true,
                  }}
                  render={({ field: { onChange, value } }) =&gt; (
                    &lt;div className=&quot;reminder_form_err_container remeberFieldInput&quot;&gt;
                      &lt;DatePicker
                        className=&quot;login_input remeberFieldInput ip-field w-100 &quot;
                        label=&quot;Date&quot;
                        mask=&quot;___ __ ___, ____&quot;
                        inputFormat={&quot;ddd D MMM, YYYY&quot;}
                        value={value}
                        disablePast
                        readOnly
                        onChange={(e) =&gt; onChange(e)}
                        renderInput={(params) =&gt; (
                          &lt;TextField
                            {...params}
                            onClick={(e) =&gt; setStartDate(true)}
                          /&gt;
                        )}
                        open={isStartDate}
                        onClose={() =&gt; setStartDate(false)}
                      /&gt;
                      {errors.reminderFromDate &amp;&amp; (
                        &lt;span className=&quot;reminder_text-danger&quot; role=&quot;alert&quot;&gt;
                          {&quot;This field is required&quot;}
                        &lt;/span&gt;
                      )}
                    &lt;/div&gt;
                  )}
                /&gt;
              &lt;/LocalizationProvider&gt;
  </code></pre>