Skip to content

Emit input value on blur for input components#281

Open
devmount wants to merge 3 commits into
mainfrom
bugs/279-emit-input-value-on-blur
Open

Emit input value on blur for input components#281
devmount wants to merge 3 commits into
mainfrom
bugs/279-emit-input-value-on-blur

Conversation

@devmount
Copy link
Copy Markdown
Collaborator

What changed?

This change emits the current value when blurring a TextInput, TextArea or SelectInput component.

Why?

Convenience. This makes the current input value available when listening for the blur event.

Limitations and Notes

The SelectInput tests currently miss cases for events. I was too stupid (or too tired) to make it work for now.

Applicable Issues

Closes #279

Screenshots

None

@devmount devmount self-assigned this May 12, 2026
Copy link
Copy Markdown
Member

@MelissaAutumn MelissaAutumn left a comment

Choose a reason for hiding this comment

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

Maybe we should send the current event instead. I'm afraid that if we start changing default event params we may shoot ourselves in the foot later when we copy and paste code for a native html element. 🤔

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.

TextInput doesn't forward the input value onBlur

2 participants