Skip to content

Commit

Permalink
Fix overly-aggressive click handler on post-view
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Apr 8, 2021
1 parent 2ee7cf0 commit 9f411f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/ctzn-tags/post-view.js
Expand Up @@ -492,7 +492,7 @@ export class PostView extends LitElement {
onClickCard (e) {
if (this.renderOpts.noclick) return
for (let el of e.composedPath()) {
if (el.tagName === 'A' || el.tagName === 'CTZN-COMPOSER' || el.tagName === 'CTZN-REACTION-INPUT') return
if (el.tagName === 'A' || el.tagName === 'APP-COMPOSER' || el.tagName === 'APP-REACTION-INPUT') return
}
e.preventDefault()
e.stopPropagation()
Expand All @@ -501,7 +501,7 @@ export class PostView extends LitElement {
onMousedownCard (e) {
if (this.renderOpts.noclick) return
for (let el of e.composedPath()) {
if (el.tagName === 'A' || el.tagName === 'CTZN-COMPOSER' || el.tagName === 'CTZN-REACTION-INPUT') return
if (el.tagName === 'A' || el.tagName === 'APP-COMPOSER' || el.tagName === 'APP-REACTION-INPUT') return
}
this.isMouseDown = true
this.isMouseDragging = false
Expand Down

1 comment on commit 9f411f2

@vercel
Copy link

@vercel vercel bot commented on 9f411f2 Apr 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.