Skip to content

Commit

Permalink
Merge branch 'main' into improve_contrast_light_themes
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 authored Feb 11, 2025
2 parents 5abc223 + 9645a94 commit d4c2fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/controllers/subject_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class extends Controller {

// if in a list and the click is made via touch, open the post
if (!this.element.classList.contains('isSingle')) {
this.element.querySelector('.content').addEventListener('click', (e) => {
this.element.querySelector('.content')?.addEventListener('click', (e) => {
if (e.defaultPrevented) {
return
}
Expand Down

0 comments on commit d4c2fce

Please sign in to comment.