feat: wrap menu item text in a span (#4026)

Fix #4017
This commit is contained in:
Gary Katsevman
2017-02-03 16:35:30 -05:00
committed by GitHub
parent e176b56843
commit 5748c360af
+1 -1
View File
@@ -59,7 +59,7 @@ class MenuItem extends ClickableComponent {
return super.createEl('li', assign({
className: 'vjs-menu-item',
innerHTML: this.localize(this.options_.label),
innerHTML: `<span class="vjs-menu-item-text">${this.localize(this.options_.label)}</span>`,
tabIndex: -1
}, props), attrs);
}