Skip to content

Commit

Permalink
HTML Reporter: Fix this.element is undefined in applyUrlParams()
Browse files Browse the repository at this point in the history
Follows-up e1e03e6.

Fixes #1785.
  • Loading branch information
Krinkle committed Jul 23, 2024
1 parent 05e15ba commit eb8aed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/reporters/HtmlReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export default class HtmlReporter {
const applyButton = document.createElement('button');
applyButton.textContent = 'Apply';
applyButton.title = 'Re-run the selected test modules';
DOM.on(applyButton, 'click', this.applyUrlParams);
DOM.on(applyButton, 'click', this.applyUrlParams.bind(this));

const resetButton = document.createElement('button');
resetButton.textContent = 'Reset';
Expand Down

0 comments on commit eb8aed0

Please sign in to comment.