Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onKeyDown to TextField and TextArea #303

Merged
merged 4 commits into from Aug 20, 2018

Conversation

jennyscript
Copy link
Member

No description provided.

@christianvuerings
Copy link
Contributor

christianvuerings commented Aug 7, 2018

Deploy preview for gestalt ready!

Built with commit 4d83201

https://deploy-preview-303--gestalt.netlify.com

@ghost
Copy link

ghost commented Aug 7, 2018

Warnings
⚠️

📁 Bundlesize - Bundle size increase detected, please review

Filename Size Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip
gestalt.js 🔺 0.1% 🔺 0.0% 261.35 KB 261.6 KB 58.72 KB 58.72 KB
gestalt.es.js 🔺 0.1% 🔺 0.0% 258.68 KB 258.93 KB 58.35 KB 58.35 KB

Generated by 🚫 dangerJS

@@ -44,16 +44,24 @@ card(
},
{
name: 'onBlur',
type: '({ event: SyntheticFocusEvent<>, value: string }) => void',
type:
Copy link
Contributor

Choose a reason for hiding this comment

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

These are going to cause Flow errors when bumping in pinboard - prepare yourselves, winter is coming

handleChange = (event: SyntheticInputEvent<HTMLTextAreaElement>) => {
this.props.onChange({
event,
value: event.currentTarget.value,
Copy link
Contributor

Choose a reason for hiding this comment

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

are we sure this is the same, event.target.value and event.currentTarget.value? i know there was once a currentTarget target change in pinboard and it caused a rollback/hotfix

@jennyscript jennyscript merged commit 66ddb17 into pinterest:master Aug 20, 2018
@jennyscript jennyscript deleted the add-keydown-textarea branch August 20, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants