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'; |
import ComponentTextView from './ComponentTextView'; |
||||
|
|
||||
export default class ComponentLinkView extends ComponentView { |
|
||||
render(...args) { |
|
||||
ComponentView.prototype.render.apply(this, args); |
|
||||
|
|
||||
|
export default class ComponentLinkView extends ComponentTextView { |
||||
|
render() { |
||||
|
super.render(); |
||||
// I need capturing instead of bubbling as bubbled clicks from other
|
// I need capturing instead of bubbling as bubbled clicks from other
|
||||
// children will execute the link event
|
// children will execute the link event
|
||||
this.el.addEventListener('click', this.prevDef, true); |
this.el.addEventListener('click', this.prevDef, true); |
||||
Loading…
Reference in new issue