We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24f4ce9 + 2733d07 commit 21ff272Copy full SHA for 21ff272
src/index.ts
@@ -310,7 +310,7 @@ if (!window.customElements.get('md-strikethrough')) {
310
311
function applyFromToolbar(event: Event) {
312
const {target, currentTarget} = event
313
- if (!(target instanceof HTMLElement)) return
+ if (!(target instanceof Element)) return
314
const mdButton = target.closest('[data-md-button]')
315
if (!mdButton || mdButton.closest('markdown-toolbar') !== currentTarget) return
316
const mdButtonStyle = target.getAttribute('data-md-button')
0 commit comments