Skip to content

Commit

Permalink
Replace DOM references.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeyer2115 committed Jun 28, 2021
1 parent 3fd7d4c commit 5d08f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cards/card_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ BaseCard["{{componentName}}"] = class extends ANSWERS.Component {
})
);
}

const rtfElement = DOM.query(this._container, '.js-yxt-rtfValue');
const rtfElement = this._container.querySelector('.js-yxt-rtfValue');
if (rtfElement) {
const fieldName = rtfElement.dataset.fieldName;
DOM.on(rtfElement, 'click', e => this._handleRtfClickAnalytics(e, fieldName));
rtfElement.addEventListener('click', e => this._handleRtfClickAnalytics(e, fieldName));
}
}

Expand Down

0 comments on commit 5d08f9a

Please sign in to comment.