Skip to content

Commit

Permalink
Add click handler for small mobile search button
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Jan 31, 2025
1 parent 7d2eb91 commit 00db61b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public interface SearchViewImplUiBinder
@UiField
Button searchButton;

@UiField
Button searchButtonSmall;

private List<Button> facetButtons;
private SynapseJSNIUtils synapseJSNIUtils;
private PortalGinInjector ginInjector;
Expand Down Expand Up @@ -138,6 +141,14 @@ public void onClick(ClickEvent event) {
}
}
);
searchButtonSmall.addClickHandler(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
presenter.setSearchTerm(searchField.getText());
}
}
);
searchField.addKeyDownHandler(
new KeyDownHandler() {
@Override
Expand Down

0 comments on commit 00db61b

Please sign in to comment.