Skip to content

Commit 1b907d4

Browse files
committed
#6651 keeping handlers optional
1 parent a32abb0 commit 1b907d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/button/Base.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ class Button extends Component {
499499
me.bindCallback(me.handler, 'handler', me.handlerScope || me)
500500
}
501501

502-
me.handler(data);
502+
me.handler?.(data);
503503

504504
me.menu && me.toggleMenu();
505505
me.route && me.changeRoute(); // only relevant for editRoute=true

0 commit comments

Comments
 (0)