Skip to content

Commit

Permalink
fix #141370. Update buttons on find match state change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jan 26, 2022
1 parent b604f3b commit 6c1be5a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ export abstract class SimpleFindReplaceWidget extends Widget {
this._domNode.classList.toggle('replaceToggled', this._isReplaceVisible);
this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);

this.foundMatch = this._state.matchesCount > 0;
this.updateButtons(this.foundMatch);
}

protected _updateMatchesCount(): void {
Expand Down

0 comments on commit 6c1be5a

Please sign in to comment.