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 region toggle button does not exit region mode #1228

Merged
merged 2 commits into from
Jun 22, 2020

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Jun 22, 2020

No description provided.

@mxiao6 mxiao6 requested a review from a team as a code owner June 22, 2020 19:37
ConradJChan
ConradJChan previously approved these changes Jun 22, 2020
@@ -1055,10 +1055,13 @@ class BaseViewer extends EventEmitter {
* Handler for annotation toolbar region comment button click event.
*
* @private
* @param {boolean} activeControl - avtive control mode in AnnotationControls
Copy link
Contributor

Choose a reason for hiding this comment

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

acvtive -> active.

I believe we typically represent destructured arguments as:
@param {boolean} options.activeControl - ...

Copy link
Contributor Author

@mxiao6 mxiao6 Jun 22, 2020

Choose a reason for hiding this comment

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

Thank you for your feedback, I'll pay attention to those in my future PRs. I just removed this line in my latest commit.

src/lib/AnnotationControls.ts Outdated Show resolved Hide resolved
src/lib/AnnotationControls.ts Outdated Show resolved Hide resolved
src/lib/AnnotationControls.ts Outdated Show resolved Hide resolved
src/lib/AnnotationControls.ts Outdated Show resolved Hide resolved
src/lib/viewers/doc/DocBaseViewer.js Show resolved Hide resolved
@mergify mergify bot merged commit e8b3cbb into box:master Jun 22, 2020
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