We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fef62f commit 014e98fCopy full SHA for 014e98f
index.js
@@ -1,7 +1,7 @@
1
/* @flow strict */
2
3
const buttonSelectors = ['[data-md-button]']
4
-function getButtons(toolbar: Element) {
+function getButtons(toolbar: Element): Element[] {
5
const els = []
6
for (const button of toolbar.querySelectorAll(buttonSelectors.join(', '))) {
7
if (button.closest('markdown-toolbar') === toolbar) els.push(button)
0 commit comments