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: Fix focus for new page number input #187

Merged
merged 3 commits into from
Jun 28, 2017
Merged

Fix: Fix focus for new page number input #187

merged 3 commits into from
Jun 28, 2017

Conversation

jeremypress
Copy link
Contributor

The parent of the input element is now the page-num-wrapper and not a bp-control-button

@jeremypress jeremypress requested review from tonyjin, pramodsum and JustinHoldstock and removed request for tonyjin June 28, 2017 03:01
*
* @property {boolean}
*/
hasTouch = Browser.hasTouch();
Copy link
Contributor

Choose a reason for hiding this comment

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

So doing this might mean this check is performed when this class is defined, not when it's initialized (I'm not super clear on this). Given we have a context loss handler this may be okay, just FYI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should only be doing the touch check which doesn't use webGL.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doh! Saw Browser and assumed webGL for some reason.

this.containerEl = container;

this.controlsWrapperEl = this.containerEl.appendChild(document.createElement('div'));
this.controlsWrapperEl.className = 'bp-controls-wrapper';
const controlsWrapperEl = this.containerEl.appendChild(document.createElement('div'));
Copy link
Contributor

Choose a reason for hiding this comment

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

:)

@jeremypress jeremypress merged commit 5f82f15 into box:master Jun 28, 2017
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