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

fix(annotations): Fix user cannot tab to color picker #1319

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Jan 19, 2021

  • Unit test
  • Cross-browser testing

@mxiao6 mxiao6 requested a review from a team as a code owner January 19, 2021 18:38
@@ -36,7 +37,7 @@ describe('ColorPickerControl', () => {
toggleButton.simulate('click');
expect(getToggleButton(wrapper).hasClass('bp-is-active')).toBe(true);

toggleButton.simulate('blur');
toggleButton.simulate('blur', {});
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the empty object needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, otherwise the test will throw error for getting relatedTarget from undefined

@mergify mergify bot merged commit e25ab79 into box:master Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants