Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(ChatComposerInput): file FR18 verification under interaction and list the IME caret spec (#10811)

Cindy Zhangcc154981d75b
diff --git a/.changeset/chat-composer-input-comment-tidy.md b/.changeset/chat-composer-input-comment-tidy.md
new file mode 100644
index 0000000000..270f7a970a
--- /dev/null
+++ b/.changeset/chat-composer-input-comment-tidy.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[chore] Internal: a ChatComposerInput source comment that restated the code is removed. No change to behavior or output.
+
+@cixzhang
diff --git a/docs/specs/components/Chat/ChatComposerInput.spec.md b/docs/specs/components/Chat/ChatComposerInput.spec.md
index 629115e101..d816d5a533 100644
--- a/docs/specs/components/Chat/ChatComposerInput.spec.md
+++ b/docs/specs/components/Chat/ChatComposerInput.spec.md
@@ -15,6 +15,7 @@ verified_by:
packages/core/src/Chat/ChatComposerInput.test.tsx,
packages/core/src/Chat/ChatComposerInput.public.test.ts,
packages/core/src/Chat/__tests__/ChatComposerReturnKey.a11y.chromium.spec.ts,
+ packages/core/src/Chat/__tests__/ChatComposerImeCaret.a11y.chromium.spec.ts,
apps/storybook/stories/ChatComposerInput.stories.tsx,
apps/storybook/rtl-audit/verified-not-applicable.json,
]
@@ -194,7 +195,7 @@ add a theming target or decide a new visual state.
| AR1, AR4 | role/name/ARIA tests plus exact-head accessibility and visual gates | textbox; combobox; disabled; keyboard focus | Name, role, multiline, expanded, disabled, or visible focus semantics regress. | `audit:ChatComposerInput/accessibility` |
| FR9 | ref, target, package, and repository checks | ref; BaseProps; xstyle; className; style | Root ownership or a styling seam moves or disappears. | `audit:ChatComposerInput/api` |
| FR17 | `ChatComposerInput.test.tsx` touch keyboard Return key suite (`send` by default, the set value, `send` inside ChatComposer's default input, Enter submits under every label); `ChatComposerInput.public.test.ts`, run by `pnpm typecheck`, for `EnterKeyHint` rejecting an arbitrary or unnarrowed string; `ChatComposerReturnKey.a11y.chromium.spec.ts` for the attribute on the editor a tap focuses | default; `enter`; inside ChatComposer; a phone viewport with touch emulation | A missing or wrong `enterkeyhint`, a label that stops Enter from submitting, or a type that accepts `string` fails. | `audit:ChatComposerInput/api` |
-| FR18 | `ChatComposerInput.test.tsx` "one Backspace after a token removes the token and its space" and "one Backspace on a token that starts the last line keeps that line for the caret"; `ChatComposerImeCaret.a11y.chromium.spec.ts` | after an inserted token, with no text after its space; a token that starts the last line | A token or its trailing space left after one Backspace, a line break added beyond the text before the token, or an emptied last line that loses its line, fails. | `audit:ChatComposerInput/api` |
+| FR18 | `ChatComposerInput.test.tsx` "one Backspace after a token removes the token and its space" and "one Backspace on a token that starts the last line keeps that line for the caret"; `ChatComposerImeCaret.a11y.chromium.spec.ts` | after an inserted token, with no text after its space; a token that starts the last line | A token or its trailing space left after one Backspace, a line break added beyond the text before the token, or an emptied last line that loses its line, fails. | `audit:ChatComposerInput/interaction` |
## Decision log
diff --git a/packages/core/src/Chat/ChatComposerInput.tsx b/packages/core/src/Chat/ChatComposerInput.tsx
index 04e099b48e..4bcca13ed1 100644
--- a/packages/core/src/Chat/ChatComposerInput.tsx
+++ b/packages/core/src/Chat/ChatComposerInput.tsx
@@ -707,7 +707,6 @@ export function ChatComposerInput(props: ChatComposerInputProps) {
return;
}
- // Backspace next to a token: the token hook owns it.
if (handleTokenKeyDown(e)) {
return;
}