Skip to content

Add input_select action#334

Open
myabc wants to merge 1 commit into
marcoroth:mainfrom
myabc:feature/input_select
Open

Add input_select action#334
myabc wants to merge 1 commit into
marcoroth:mainfrom
myabc:feature/input_select

Conversation

@myabc

@myabc myabc commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Implements the input_select action, which selects the text of target input elements via input.select().

<turbo-stream action="input_select" target="item_1"></turbo-stream>
  • Added input_select to src/actions/form.ts and registered it.
  • Added test/form/input_select.test.js (target + targets cases).
  • Documented under Form Actions in the README.

Closes #53

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 27, 2026 12:46
@myabc myabc changed the title Add input_select action Add input_select action Jun 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new TurboPower form action, input_select, enabling Turbo Stream messages to select the text inside targeted <input> elements via HTMLInputElement#select().

Changes:

  • Implemented input_select in src/actions/form.ts and registered it in registerFormActions.
  • Added browser-based tests covering both target and targets selection behavior.
  • Documented the new action under “Form Actions” in the README.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/actions/form.ts Adds and registers the new input_select stream action that calls select() on target inputs.
test/form/input_select.test.js Verifies input_select selects full text for single and multiple input targets.
README.md Documents turbo_stream.input_select in the Form Actions list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Selects the text of target input elements via `input.select()`.

Closes marcoroth#53.
@myabc
myabc force-pushed the feature/input_select branch from ec939bd to 4e651ea Compare June 27, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement input_select action

2 participants