diff options
-rw-r--r-- | src/MenuItem.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs index 7c617cc..1035cd1 100644 --- a/src/MenuItem.mjs +++ b/src/MenuItem.mjs | |||
@@ -31,7 +31,7 @@ export class Item extends window.HTMLDivElement { | |||
31 | constructor ({ text, innerHTML, title, onclick, style, className }) { | 31 | constructor ({ text, innerHTML, title, onclick, style, className }) { |
32 | super() | 32 | super() |
33 | this.innerHTML = innerHTML ?? text | 33 | this.innerHTML = innerHTML ?? text |
34 | this.title = title | 34 | if (title) this.title = title |
35 | this.onclick = onclick | 35 | this.onclick = onclick |
36 | this.style.cssText = style | 36 | this.style.cssText = style |
37 | this.classList.add('menu-item') | 37 | this.classList.add('menu-item') |