Skip to content

Commit ceceda5

Browse files
committed
fix: Optimize attributes
1 parent 4f9efb1 commit ceceda5

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/markdown/block-render.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,8 @@ import './block-ui.js';
3232

3333
@customElement('md-block')
3434
export class MarkdownBlock extends LitElement implements SigpropHost {
35-
@property({type: String, reflect: true}) accessor checked:
36-
| 'true'
37-
| 'false'
38-
| undefined;
3935
@property({type: Boolean, reflect: true}) accessor root: boolean | undefined;
4036
@property({type: String, reflect: true}) accessor type = '';
41-
@property({type: String, reflect: true}) accessor marker: string | undefined;
4237
@consume({context: hostContext, subscribe: true})
4338
@property({attribute: false})
4439
accessor hostContext: HostContext | undefined;

src/markdown/inline-render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ export class MarkdownInline extends LitElement implements SigpropHost {
6666
this.addEventListener('beforeinput', this.onBeforeInput, {capture: true});
6767
this.addEventListener('keydown', this.onKeyDown, {capture: true});
6868
this.addEventListener('pointerdown', this.onPointerDown);
69+
this.setAttribute('contenteditable', '');
6970
}
7071
@consume({context: hostContext, subscribe: true})
7172
@property({attribute: false})
7273
accessor hostContext: HostContext | undefined;
73-
@property({type: Boolean, reflect: true}) accessor contenteditable = true;
7474
@property({type: Boolean, reflect: true}) accessor selected:
7575
| boolean
7676
| undefined;

0 commit comments

Comments
 (0)