Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach behavior to TextField's clear button #1878

Merged
merged 2 commits into from
Mar 11, 2023
Merged

Conversation

camertron
Copy link
Contributor

Description

TextField components come with a clear button that currently requires consumers of the library to attach behavior on their own. Historically this has been because TextFields were not wrapped with a custom element and thus had no convenient place to add javascript behavior. However since @neall and I worked on adding auto-check capabilities to TextField, we now have such a custom element and can add behavior to the clear button.

Integration

Does this change require any updates to code in production?

No

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@camertron camertron requested a review from jonrohan March 10, 2023 18:53
@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2023

🦋 Changeset detected

Latest commit: bda3e95

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@camertron camertron merged commit 9c211ce into main Mar 11, 2023
@camertron camertron deleted the text_field_clear_contents branch March 11, 2023 21:10
This was referenced Mar 11, 2023
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.

2 participants