[tools] Fix map search
Bug: v8:10644 Change-Id: I8aaaf7337a92ef4962848a550ad1b80a65e3bc23 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2565350 Reviewed-by: Camillo Bruni <cbruni@chromium.org> Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org> Cr-Commit-Position: refs/heads/master@{#71491}
This commit is contained in:
parent
1ed6c80169
commit
22976631da
@ -57,13 +57,13 @@ DOM.defineCustomElement('view/map-panel',
|
||||
let searchBar = this.$('#searchBarInput');
|
||||
let searchBarInput = searchBar.value;
|
||||
// access the map from model cache
|
||||
let selectedMap = MapLogEntry.get(parseInt(searchBarInput));
|
||||
let selectedMap = MapLogEntry.get(searchBarInput);
|
||||
if (selectedMap) {
|
||||
searchBar.className = 'success';
|
||||
this.dispatchEvent(new FocusEvent(selectedMap));
|
||||
} else {
|
||||
searchBar.className = 'failure';
|
||||
}
|
||||
this.dispatchEvent(new FocusEvent(selectedMap));
|
||||
}
|
||||
|
||||
set selectedMapLogEntries(list) {
|
||||
|
Loading…
Reference in New Issue
Block a user