Skip to content

fix(material/form-field): allow empty control properties#33372

Open
Shraddhameduri wants to merge 1 commit into
angular:mainfrom
Shraddhameduri:my-fix-branch
Open

fix(material/form-field): allow empty control properties#33372
Shraddhameduri wants to merge 1 commit into
angular:mainfrom
Shraddhameduri:my-fix-branch

Conversation

@Shraddhameduri

Copy link
Copy Markdown

Fixes #33353

Changes

Updates MatFormFieldControl and related implementations to allow optional or empty values for common control properties.

This change allows:

  • placeholder to accept null and undefined
  • required to be optional

Updated:

  • MatFormFieldControl
  • MatInput
  • MatChipInput
  • MatChipGrid
  • MatChipTextControl

Validation

Executed successfully:

  • pnpm bazel test src/material/form-field:form-field_strict_deps_test
  • pnpm bazel test src/material/input:unit_tests
  • pnpm bazel test src/material/chips:unit_tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(MatFormFieldControl, MatInput): enable empty value for element attributes

1 participant