-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[core] Add missing babel-runtime dependency #6535
Conversation
oliviertassinari
commented
Apr 7, 2017
- PR has tests / docs demo, and is linted.
- Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
- Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).
src/Menu/MenuList.js
Outdated
@@ -93,7 +97,7 @@ export default class MenuList extends Component { | |||
|
|||
handleItemFocus = (event) => { | |||
const list = findDOMNode(this.list); | |||
if (list) { | |||
if (list instanceof HTMLElement) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested by facebook/flow#3548 (comment)
src/Menu/MenuList.js
Outdated
@@ -110,15 +114,22 @@ export default class MenuList extends Component { | |||
return; | |||
} | |||
|
|||
if (currentTabIndex && currentTabIndex >= 0) { | |||
if (currentTabIndex && currentTabIndex >= 0 && | |||
// $FlowFixMe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -85,15 +85,20 @@ export default class Menu extends Component { | |||
const list = ReactDOM.findDOMNode(this.menuList); | |||
|
|||
if (this.menuList && this.menuList.selectedItem) { | |||
// $FlowFixMe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are all these comments for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For flow issues I don't have time to fix