mirror of https://github.com/artf/grapesjs.git
1 changed files with 4 additions and 5 deletions
@ -1,9 +1,8 @@ |
|||
import ComponentView from './ComponentTextView'; |
|||
|
|||
export default class ComponentLinkView extends ComponentView { |
|||
render(...args) { |
|||
ComponentView.prototype.render.apply(this, args); |
|||
import ComponentTextView from './ComponentTextView'; |
|||
|
|||
export default class ComponentLinkView extends ComponentTextView { |
|||
render() { |
|||
super.render(); |
|||
// I need capturing instead of bubbling as bubbled clicks from other
|
|||
// children will execute the link event
|
|||
this.el.addEventListener('click', this.prevDef, true); |
|||
Loading…
Reference in new issue