Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Commit

Permalink
Fix highlight/filter assuming everything is a search match
Browse files Browse the repository at this point in the history
  • Loading branch information
robflop committed Jul 8, 2018
1 parent b49a3a2 commit de63925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8">
<title>ToL Mod Utility</title>
<link rel="stylesheet" href="../css/index.css">
<!-- <script src="https://unpkg.com/[email protected]/dist/vue.js"></script> -->
<script src="https://unpkg.com/[email protected]/dist/vue.min.js"></script>
</head>

Expand Down
3 changes: 3 additions & 0 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ const app = new Vue({ // eslint-disable-line no-undef
this.currentHit = this.jumpToHit = 1;
// Clear search results from prev. search

if (this.searchInput === '') return;
// For when re-running search on filter changes but there was no search input before the filter change

this.parsedChatLogs.forEach((log, index) => {
let searchHit = false;

Expand Down

0 comments on commit de63925

Please sign in to comment.