Skip to content

Commit

Permalink
Make component label editable
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Apr 3, 2024
1 parent c47ed84 commit 15c2522
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/ComponentLabelView.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ComponentLabel from '../model/ComponentLabel';
import ComponentView from './ComponentView';
import ComponentLinkView from './ComponentLinkView';

export default class ComponentLabelView extends ComponentView<ComponentLabel> {}
export default class ComponentLabelView extends ComponentLinkView<ComponentLabel> {}
2 changes: 1 addition & 1 deletion 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 ComponentTextView from './ComponentTextView';

export default class ComponentLinkView extends ComponentTextView<ComponentLink> {
export default class ComponentLinkView<TComp extends ComponentLink = ComponentLink> extends ComponentTextView<TComp> {
render() {
super.render();
// I need capturing instead of bubbling as bubbled clicks from other
Expand Down

0 comments on commit 15c2522

Please sign in to comment.