Skip to content

Auto-Completion in search bar not working until switching tabs #11428

@LoayGhreeb

Description

@LoayGhreeb

JabRef version

5.13 (latest release)

Operating system

Windows

Details on version and operating system

Windows 11

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Start JabRef and open a library from files.
  2. Write in the search bar.
  3. The auto-completion is not working.
  4. Open another library.
  5. Return to the first one, and the auto-completion will work.

This is because of the binding of the selected tab:

EasyBind.subscribe(tabbedPane.getSelectionModel().selectedItemProperty(), tab -> {
is responsible for setting the auto-completer for the search bar:
// Update search autocompleter with information for the correct database:
globalSearchBar.setAutoCompleter(libraryTab.getAutoCompleter());
This will not be fired after dataLoadingTask is finished (because the tab is already selected and showing a loading table)
private void onDatabaseLoadingSucceed(ParserResult result) {
(dataLoadingTask will set up the auto-completer but it will not be used in the search bar until switching to another tab).

Appendix

...

Log File
Paste an excerpt of your log file here

Metadata

Metadata

Assignees

Type

No fields configured for bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions