-
Notifications
You must be signed in to change notification settings - Fork 46
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
Merging Annotation header changes #240
Conversation
* Update: Adding headerElement to annotator options * Update: headerElement fallback to container when using preview header * Chore: hide the annotation button on destroy * Chore: default to header container * Chore: addressing comments * Chore: Only hideButton if modeButton exists
Verified that @pramodsum has signed the CLA. Thanks for the pull request! |
src/Annotator.js
Outdated
// If using box content preview header and no external header element was specified, | ||
// fallback to the container element | ||
if (this.options.header !== 'none' && !this.headerElement) { | ||
this.headerElement = this.container.querySelector(SELECTOR_BOX_PREVIEW_HEADER_CONTAINER); |
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.
@ConradJChan It seems like this class is never loaded onto the preview header? The default preview header seems to use bp-header
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.
LGTM
@ConradJChan let me know if I messed up any merge conflicts anywhere!