react-spectrum
a4d479ad - Support fields with no visible label

Commit
4 years ago
Support fields with no visible label Refactored return logic in TextFieldBase: always return a `<Field>` and delegate rendering a simple `React.cloneElement` to Field.tsx. In Field.tsx, only return a simple `React.cloneElement` if both a label and help text are missing. Otherwise, conditionally render a `<Label>` and `<HelpText>`.
Author
Dylan Kario
Parents
Loading