FIX: Future-proof selection of elements

This commit is contained in:
Justin DiRose 2020-08-05 12:08:28 -05:00
parent 80745b81c9
commit e51cde30b2
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
1 changed files with 2 additions and 1 deletions

View File

@ -14,9 +14,10 @@ export default Ember.Component.extend({
// need to handle clicks here since links are in a raw view
click(e) {
if (e.target.className === "knowledge-explorer-topic-link") {
if (e.target.classList.contains("knowledge-explorer-topic-link")) {
const topicId = e.target.dataset.topicId;
this.selectTopic(topicId);
return false;
}
},