Skip to content

Add AutoFocus Support to Button and Input Widgets#2673

Open
nielsbosma wants to merge 7 commits intomainfrom
pr/f67d5120-add-autofocus-support
Open

Add AutoFocus Support to Button and Input Widgets#2673
nielsbosma wants to merge 7 commits intomainfrom
pr/f67d5120-add-autofocus-support

Conversation

@nielsbosma
Copy link
Copy Markdown
Contributor

@nielsbosma nielsbosma commented Mar 17, 2026

Summary

  • Add AutoFocus property to Button and all Input widgets (Text, Number, Select, Bool, Color, DateTime, DateRange, File, Icon, ReadOnly, Code, Feedback)
  • Adds IAnyInput.AutoFocus interface property for consistent API
  • Frontend components pass autoFocus to underlying HTML elements

Closes #2378

ButtonAutoFocus.zip

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nielsbosma nielsbosma requested a review from rorychatt March 17, 2026 09:33
rorychatt and others added 6 commits March 18, 2026 10:32
… interface

NumberRangeInputBase was missing the AutoFocus property after it was added
to IAnyInput, causing a build error. Also adds the corresponding extension
method for fluent API usage.
Fix TS errors where autoFocus was being passed to Checkbox and
NumberInput components without being declared in their prop types.
@artem-ivy-ai
Copy link
Copy Markdown
Collaborator

Ivy Bot Agentic Review

  • Build: Failed
  • Linting/Formatting: Failed
  • API Audit: Checked
  • Spelling: Checked

🧠 Ivy Bot Agentic Insights

— Co-authored by @rorychatt & @artem-ivy-ai

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

(text input): add AutoFocus property

3 participants