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

[Bug] Close the sectionPicker if the escape key is pressed #9

Merged
merged 7 commits into from
Mar 9, 2017

Conversation

VishaalK
Copy link
Contributor

No description provided.

@@ -5,4 +5,5 @@ node_modules
target/modules
target/tests
typings
debug.log
Copy link
Contributor

Choose a reason for hiding this comment

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

What generates this?

Copy link
Contributor Author

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";
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

OneNotePickerComponentClass.prototype.render = function () {
var status = this.getStatusEnumFromString(this.props.status);
var textToDisplay = this.getTextToDisplayFromStatus(status);
return ({tag: "div", attrs: {}, children: [
// if (!OneNotePickerComponentClass.escapeListenerAttached) {
Copy link
Contributor

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?

@VishaalK VishaalK merged commit 681da1c into master Mar 9, 2017
@VishaalK VishaalK deleted the bug/esc-key-listener branch March 14, 2017 21:19
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