Skip to content

Commit

Permalink
Fix ComponentLinkView extend
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Mar 12, 2024
1 parent 394dc14 commit a54f213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dom_components/view/ComponentLinkView.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ComponentLink from '../model/ComponentLink';
import ComponentView from './ComponentView';
import ComponentTextView from './ComponentTextView';

export default class ComponentLinkView extends ComponentView<ComponentLink> {
export default class ComponentLinkView extends ComponentTextView<ComponentLink> {
render() {
super.render();
// I need capturing instead of bubbling as bubbled clicks from other
Expand Down
2 changes: 1 addition & 1 deletion src/dom_components/view/ComponentTextView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ComponentText from '../model/ComponentText';
import { ComponentDefinition } from '../model/types';
import ComponentView from './ComponentView';

export default class ComponentTextView extends ComponentView<ComponentText> {
export default class ComponentTextView<TComp extends ComponentText = ComponentText> extends ComponentView<TComp> {
rte?: RichTextEditorModule;
rteEnabled?: boolean;
activeRte?: RichTextEditor;
Expand Down

0 comments on commit a54f213

Please sign in to comment.