-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Bug] Close the sectionPicker if the escape key is pressed #9
Conversation
…vice but avoiding statics by wrapping it in lifecycle management
@@ -5,4 +5,5 @@ node_modules | |||
target/modules | |||
target/tests | |||
typings | |||
debug.log |
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 generates this?
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.
node generates it. I think I ran some invalid command. These were the contents of mine.
[0227/160250:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:6004
[0227/160250:ERROR:node_debugger.cc(86)] Cannot start debugger server
@@ -4,6 +4,7 @@ import {OneNotePickerPopupComponent} from "./oneNotePickerPopupComponent"; | |||
import {SectionProps} from "./sectionComponent"; | |||
import {ComponentBase} from "../componentBase"; | |||
import {Status} from "../../status"; | |||
import {Constants} from "../../constants"; |
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.
Nit: We should order the imports.
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.
Good catch!
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.
Fixed
target/oneNotePicker.js
Outdated
OneNotePickerComponentClass.prototype.render = function () { | ||
var status = this.getStatusEnumFromString(this.props.status); | ||
var textToDisplay = this.getTextToDisplayFromStatus(status); | ||
return ({tag: "div", attrs: {}, children: [ | ||
// if (!OneNotePickerComponentClass.escapeListenerAttached) { |
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.
Is this code ready for review?
No description provided.