From d7cee977dd7b6b57d802a17d37051b315b88bc8e Mon Sep 17 00:00:00 2001 From: jh-code Date: Mon, 10 Dec 2018 11:07:08 -0600 Subject: [PATCH] fix(desktop): move search text highlight logic after update of notes to display Referencing issue standardnotes/web#263 --- app/assets/javascripts/app/controllers/notes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/notes.js b/app/assets/javascripts/app/controllers/notes.js index 05c92d611..8fc2ca944 100644 --- a/app/assets/javascripts/app/controllers/notes.js +++ b/app/assets/javascripts/app/controllers/notes.js @@ -107,11 +107,11 @@ angular.module('app') this.DefaultNotesToDisplayValue = (document.documentElement.clientHeight / MinNoteHeight) || 20; this.paginate = function() { + this.notesToDisplay += this.DefaultNotesToDisplayValue + if (this.searchSubmitted) { desktopManager.searchText(this.noteFilter.text); } - - this.notesToDisplay += this.DefaultNotesToDisplayValue } this.resetPagination = function() {