Use arrow function notation when registering click listener for...
...quick menu buttons
This commit is contained in:
parent
46e399b30f
commit
a6ddc99d8d
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,9 @@ export abstract class QuickMenuButton extends Component {
|
|||
|
||||
// listen for click events
|
||||
// FIXME: do we need to store this value for potential cleanup?
|
||||
new ElementClickListener(this.componentElement).onClick = this.onClick;
|
||||
new ElementClickListener(this.componentElement).onClick = (evt: Event) => {
|
||||
this.onClick(evt);
|
||||
};
|
||||
this.update();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue