We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c72bb2 commit a2a8caeCopy full SHA for a2a8cae
app/components/ember-anchor.js
@@ -6,9 +6,9 @@ import getOffset from 'ember-api-docs/utils/get-offset';
6
export default class EmberAnchor extends AnchorComponent {
7
// This overrides Ember Anchor to support scrolling within a fixed position element
8
_scrollToElemPosition() {
9
- let qp = this.anchorQueryParam;
10
- let qpVal = this.a;
11
- let elem = document.querySelector(`[data-${qp}="${qpVal}"]`);
+ let elem = document.querySelector(
+ `[data-${this.anchorQueryParam}="${this.a}"]`
+ );
12
13
if (elem && elem.offsetHeight) {
14
const offsetToScroll = getOffset(
0 commit comments