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

Stop separately tracking focus for Input #859

Merged
merged 9 commits into from
May 27, 2020

Conversation

ericluap
Copy link
Contributor

I renamed dispatch to focus and focus to focusWithoutBlur.

(I accidentally screwed up the other pull request.)

I ran esy format and it didn't change anything, but hopefully it's happy now. I also am not sure what the unused variable mentioned is.

src/UI_Components/Input.re Outdated Show resolved Hide resolved
@ericluap ericluap requested a review from Et7f3 May 24, 2020 19:57
src/UI/Focus.re Outdated Show resolved Hide resolved
ericluap added 2 commits May 25, 2020 12:18
Using reducer instead of state hook because of possible bug with state
hooks (briskml/brisk-reconciler#74).
Copy link
Member

@glennsl glennsl left a comment

Choose a reason for hiding this comment

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

Thanks for adding the interface! That makes the boundary much more apparent, and exposes other potential issues like bad encapsulation. Based on that I have one more suggestion below.

src/UI/Focus.rei Outdated Show resolved Hide resolved
Copy link
Member

@glennsl glennsl left a comment

Choose a reason for hiding this comment

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

There is an unused variable warning that causes the CI to fail. You can run esy dune build @check locally to emit all warnings.

src/UI/Keyboard.re Outdated Show resolved Hide resolved
Copy link
Member

@glennsl glennsl left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for cleaning this up!

@glennsl glennsl merged commit e5f363a into revery-ui:master May 27, 2020
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.

3 participants