adobe / adobe/react-spectrum

TextField doesn't provide TextFieldStateContext

Open
#7,565 3 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the issue here

I believe `TextFieldStateContext` should be provided, so that we can reset the field's context when clicking a clear button.

### 🤔 Expected Behavior?

The `TextFieldStateContext` to be provided.

### 😯 Current Behavior

No such context exists

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

Install the package, try to import `TextFieldStateContext`

### Version

react-aria-components 1.5.0

### What browsers are you seeing the problem on?

Firefox

### If other, please specify.

_No response_

### What operating system are you using?

alpine linux edge

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the import of TextFieldStateContext from react-aria-components 1.5.0, then trace the TextField state API and related package exports. Done means the context is available to consumers and supports resetting the field context when a clear button is clicked.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.