mirror of
https://github.com/funamitech/mastodon
synced 2024-11-27 22:38:42 +09:00
Clicking on the CW text should expand the status (#3855)
This commit is contained in:
parent
aa58cca040
commit
bf8c2c4348
@ -81,7 +81,7 @@ class StatusContent extends React.PureComponent {
|
||||
const [ startX, startY ] = this.startXY;
|
||||
const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)];
|
||||
|
||||
if (e.target.localName === 'button' || e.target.localName === 'span' || e.target.localName === 'a' || (e.target.parentNode && e.target.parentNode.localName === 'a')) {
|
||||
if (e.target.localName === 'button' || e.target.localName === 'a' || (e.target.parentNode && (e.target.parentNode.localName === 'button' || e.target.parentNode.localName === 'a'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user