Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Forward TextField focus #107

Merged
merged 7 commits into from
Oct 5, 2018
Merged

Forward TextField focus #107

merged 7 commits into from
Oct 5, 2018

Conversation

morgandonze
Copy link
Contributor

See #59

@morgandonze morgandonze changed the title Forward TextField focus WIP Forward TextField focus Oct 2, 2018
borderColor: "hotpink",
}}
forwardedRef={ref => ref && ref.focus && ref.focus()}
onFocus={() => console.tron.log("focus")}
Copy link
Member

Choose a reason for hiding this comment

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

I'd recommend changing onFocus in this test from "console.tron.log to window.alert"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danielberkompas I added this logic because closing the alert causes the text field to become focused, which triggers the alert which...

@morgandonze morgandonze merged commit 6766dda into master Oct 5, 2018
@morgandonze morgandonze deleted the focus-forward branch December 11, 2018 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants