fix(desktop): move search text highlight logic after update of notes to display

Referencing issue standardnotes/web#263
This commit is contained in:
jh-code
2018-12-10 11:07:08 -06:00
parent e218c0d5a9
commit d7cee977dd

View File

@@ -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() {