Skip to content

create branch form disappears when typing - #838

Merged
niik merged 2 commits into
masterfrom
investigate-focus-issue
Jan 24, 2017
Merged

niik merged 2 commits into
masterfrom
investigate-focus-issue

Conversation

@shiftkey

Copy link
Copy Markdown
Member

Version: 0.0.19
OS: Windows

For some reason, React on Windows is firing componentWillReceiveProps for the branches list as soon as I try to type the branch name inside the create branch from - and this fallback value being false means the view is hidden.

I can't reproduce this behaviour on macOS (using master due to #835) to see componentWillReceiveProps fire again, but whatever - this is a better default.

@niik niik self-assigned this Jan 24, 2017
@niik

niik commented Jan 24, 2017

Copy link
Copy Markdown
Member

Merging this as-is to fix the immediate issue but we had a discussion in chat about removing the showCreateDialog from the component state and pushing it up to the appstate instead which I think would also solve this issue.

image

@niik
niik merged commit d2059f4 into master Jan 24, 2017
@niik
niik deleted the investigate-focus-issue branch January 24, 2017 12:45
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
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