From 5d08f9af008d0f8956ce45f037a046cadb44e22d Mon Sep 17 00:00:00 2001 From: Tom Meyer Date: Mon, 28 Jun 2021 09:53:41 -0400 Subject: [PATCH] Replace DOM references. --- cards/card_component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cards/card_component.js b/cards/card_component.js index 05c278ce0..78a1a01b0 100644 --- a/cards/card_component.js +++ b/cards/card_component.js @@ -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)); } }