title: React does not recognize the `InputProps` prop on a DOM element
body: <p><a href="https://i.stack.imgur.com/7fZmn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7fZmn.png" alt="Error stacktrace screenshot" /></a></p>
  <p>Warning: React does not recognize the <code>InputProps</code> prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase <code>inputprops</code> instead. If you accidentally passed it from a parent component, remove it from the DOM element.</p>
  <p><em><strong>I don't understand what I'm doing wrong. And I've seen many similar issues like this. But I couldn't see a proper solution.</strong></em></p>
  <pre><code>&lt;TextField
    {...input}
    {...rest}
    name={input.name}
    inputRef={inputRef}
    autoFocus={inputRef.current === document.activeElement}
    disabled={disabled || false}
    multiline={rowCount ? true : false}
    style={{
      width: &quot;100%&quot;,
    }}
    onChange={(event) =&gt; {
      input.onChange(event.target.value);
    }}
    {...(hesapla
      ? {
          onBlur: (e) =&gt; {
            hesapla({ name: input.name, value: input.value });
          },
          onKeyDown: (e) =&gt; {
            if (e.key === &quot;Enter&quot;) {
              hesapla({ name: input.name, value: input.value });
              e.preventDefault();
            }
          },
        }
      : {})}
    InputProps={{
      classes,
      ...(inputComponent ? { inputComponent: inputComponent } : {}),
      ...(endAdornment ? { endAdornment: endAdornment } : {}),
    }}
    inputProps={{
      style: {
        maxHeight: (rowCount * 16).toString() + &quot;px&quot;,
        overflow: &quot;auto&quot;,
        ...(rightJustify ? { textAlign: &quot;end&quot; } : {}),
        ...(!readOnly &amp;&amp; hesapla
          ? { fontWeight: &quot;bold&quot;, borderBottom: &quot;2px solid&quot; }
          : {}),
      },
      readOnly: readOnly ? readOnly : false,
    }}
  &gt;&lt;/TextField&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/dte81.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dte81.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/f0ldE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f0ldE.png" alt="enter image description here" /></a></p>