Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21ff272

Browse files
authored
Merge pull request#79 from github/allow-clicking-on-svgs-in-buttons
allow clicking on svgs in buttons
2 parents24f4ce9 +2733d07 commit21ff272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ if (!window.customElements.get('md-strikethrough')) {
310310

311311
functionapplyFromToolbar(event:Event){
312312
const{target, currentTarget}=event
313-
if(!(targetinstanceofHTMLElement))return
313+
if(!(targetinstanceofElement))return
314314
constmdButton=target.closest('[data-md-button]')
315315
if(!mdButton||mdButton.closest('markdown-toolbar')!==currentTarget)return
316316
constmdButtonStyle=target.getAttribute('data-md-button')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp