Skip to content

chore: Add onEnter and onEscape to Input Component#1850

Open
camielvs wants to merge 1 commit into02-23-feat_submit_pipeline_tags_on_runsfrom
02-23-chore_add_onenter_and_onescape_to_input_component
Open

chore: Add onEnter and onEscape to Input Component#1850
camielvs wants to merge 1 commit into02-23-feat_submit_pipeline_tags_on_runsfrom
02-23-chore_add_onenter_and_onescape_to_input_component

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Feb 23, 2026

Description

Add native onEnter and onEscape handlers to Input component to streamline use of these common actions.

Related Issue and Pull requests

Type of Change

  • Cleanup/Refactor

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  • All affected input fields should behave as expected

Additional Comments

@camielvs camielvs mentioned this pull request Feb 23, 2026
3 tasks
Copy link
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camielvs camielvs force-pushed the 02-23-chore_add_onenter_and_onescape_to_input_component branch from e07ea07 to 39e086e Compare February 23, 2026 22:00
@camielvs camielvs marked this pull request as ready for review February 23, 2026 22:01
@camielvs camielvs requested a review from a team as a code owner February 23, 2026 22:01
Comment on lines +32 to +33
onEnter?: () => void;
onEscape?: () => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do like the idea - simplifies a lot. I noticed that in most cases onEnter means "onSave" and "onEscape" means "onCancel". So maybe we should name them same way?

E.g. in InlineTextEditor same named as "onSave" and "onCancel" - we may introduce naming inconsistencies or establish a good convention.

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.

2 participants