mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(iframe): allowDefault for events within message iFrames, just not link clicks
This commit is contained in:
parent
3228b0df7e
commit
b54bf9feaa
1 changed files with 3 additions and 2 deletions
|
@ -85,10 +85,11 @@ class EventedIFrame extends React.Component
|
|||
# iFrame, the mouseup never fires in the parent window.
|
||||
|
||||
_onIFrameClick: (e) =>
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
target = @_getContainingTarget(e, {with: 'href'})
|
||||
atom.windowEventHandler.openLink(target: target) if target
|
||||
if target
|
||||
e.preventDefault()
|
||||
atom.windowEventHandler.openLink(target: target)
|
||||
|
||||
_onIFrameMouseEvent: (event) =>
|
||||
node = React.findDOMNode(@)
|
||||
|
|
Loading…
Reference in a new issue