We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94f1b0 commit a2b1fc7Copy full SHA for a2b1fc7
gwt-material/src/main/java/gwt/material/design/client/ui/MaterialSearch.java
@@ -183,7 +183,7 @@ public void onKeyUp(KeyUpEvent event) {
183
reset(obj.getKeyword());
184
});
185
// If matches add to search result container and object to temp searches
186
- if (obj.getKeyword().toLowerCase().contains(keyword)) {
+ if (match(obj, keyword)) {
187
searchResultPanel.add(link);
188
tempSearches.add(obj);
189
}
@@ -241,6 +241,10 @@ private void reset(String keyword) {
241
}));
242
243
244
+ protected boolean match(SearchObject obj, String keyword) {
245
+ return obj.getKeyword().toLowerCase().contains(keyword);
246
+ }
247
+
248
@Override
249
protected void onUnload() {
250
super.onUnload();
0 commit comments