Skip to content

Commit 93ecc35

Browse files
fix: Broken menu button setIcon type (#9089)
Co-authored-by: mister-ben <1676039+mister-ben@users.noreply.github.com>
1 parent ec33990 commit 93ecc35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/js/menu/menu-button.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,12 @@ class MenuButton extends Component {
167167
*
168168
* @param {string} name
169169
* The icon name to be added.
170+
*
171+
* @return {Element}
172+
* The element that gets created.
170173
*/
171174
setIcon(name) {
172-
super.setIcon(name, this.menuButton_.el_);
175+
return super.setIcon(name, this.menuButton_.el_);
173176
}
174177

175178
/**

0 commit comments

Comments
 (0)