File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/scaladoc/scala/tools/nsc/doc/html/resource/lib Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,17 @@ function textFilter() {
412412 var query = $ ( "#textfilter input" ) . attr ( "value" ) || '' ;
413413 var queryRegExp = compilePattern ( query ) ;
414414
415- if ( ( typeof textFilter . lastQuery === "undefined" ) || ( textFilter . lastQuery !== query ) ) {
415+ // if we are filtering on types, then we have to display types
416+ // ("display packages only" is not possible when filtering)
417+ if ( query !== "" ) {
418+ kindFilter ( "all" ) ;
419+ }
420+
421+ // Three things trigger a reload of the left pane list:
422+ // typeof textFilter.lastQuery === "undefined" <-- first load, there is nothing yet in the left pane
423+ // textFilter.lastQuery !== query <-- the filter text has changed
424+ // focusFilterState != null <-- a package has been "focused"
425+ if ( ( typeof textFilter . lastQuery === "undefined" ) || ( textFilter . lastQuery !== query ) || ( focusFilterState != null ) ) {
416426
417427 textFilter . lastQuery = query ;
418428
You can’t perform that action at this time.
0 commit comments