FIX: Future-proof selection of elements
This commit is contained in:
parent
80745b81c9
commit
e51cde30b2
|
@ -14,9 +14,10 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
// need to handle clicks here since links are in a raw view
|
// need to handle clicks here since links are in a raw view
|
||||||
click(e) {
|
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;
|
const topicId = e.target.dataset.topicId;
|
||||||
this.selectTopic(topicId);
|
this.selectTopic(topicId);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue