1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Update MarkdownPreview.js

This commit is contained in:
Milo Todt
2019-03-27 18:01:10 -07:00
committed by Junyoung Choi
parent 3426191e59
commit e655c2078b

View File

@@ -280,7 +280,7 @@ export default class MarkdownPreview extends React.Component {
if (this.props.onDoubleClick != null) this.props.onDoubleClick(e)
}
handleMouseDown(e) {
handleMouseDown (e) {
const config = ConfigManager.get()
const clickElement = e.target
const targetTag = clickElement.tagName // The direct parent HTML of where was clicked ie "BODY" or "DIV"