Skip to content

Conversation

@kisiebel
Copy link
Contributor

@kisiebel kisiebel commented Jul 16, 2018

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ npm run change

Description of changes

Removes a variable that was causing the DatePicker to fail to open every other time it gained focus. I believe the variable was designed to prevent the picker from reopening when it was closed and the button regained focus. However, since focus was already inside the picker before it was closed onFocus was not getting called again when the picker was exited.

Focus areas to test

DatePicker keyboard interaction, especially focusing and closing the picker.

Microsoft Reviewers: Open in CodeFlow

@kisiebel kisiebel requested a review from lorejoh12 as a code owner July 16, 2018 18:08
Copy link
Contributor

@lorejoh12 lorejoh12 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 this fix!

@kisiebel kisiebel closed this Jul 16, 2018
@kisiebel kisiebel reopened this Jul 16, 2018
@msftclas
Copy link

msftclas commented Jul 16, 2018

CLA assistant check
All CLA requirements met.

@cliffkoh cliffkoh changed the title Kisiebel/date picker focus bug Fixes a bug where the DatePicker would only open every other time it gained focus. Jul 17, 2018
@cliffkoh
Copy link
Contributor

In the future, please try to not have your branch name be the PR name :)

Copy link
Contributor

@cliffkoh cliffkoh left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@kisiebel
Copy link
Contributor Author

Thanks!

@lorejoh12 lorejoh12 merged commit 7d141f1 into microsoft:master Jul 17, 2018
@kisiebel kisiebel deleted the kisiebel/date-picker-focus-bug branch July 17, 2018 18:08
KevinTCoughlin added a commit to KevinTCoughlin/office-ui-fabric-react that referenced this pull request Sep 10, 2018
KevinTCoughlin added a commit to KevinTCoughlin/office-ui-fabric-react that referenced this pull request Sep 10, 2018
micahgodbolt pushed a commit that referenced this pull request Sep 11, 2018
* Revert "Fixes a bug where the DatePicker would only open every other time it gained focus. (#5583)"

This reverts commit 7d141f1.

* + changefile
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants