Skip to content

[TextField] Required variant prop  #20716

@dmtrKovalenko

Description

@dmtrKovalenko
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

The following code failing with error Type 'undefined' is not assignable to type '"outlined"'

const textFieldProps: Partial<TextFieldProps> = { }

<TextField value="" onChange={console.log} {...textFieldProps} />

Expected Behavior 🤔

No errors

Steps to Reproduce 🕹

https://codesandbox.io/s/gallant-hermann-k06ld?file=/src/index.tsx

Context 🔦

This loc should have ?

Your Environment 🌎

Tech Version
Material-UI v4.9.11
TypeScript v3.8.3
etc.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions