Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query combobox auto suggestions require scroll in popover for embedded PaleoContext in query results #5478

Open
mpitblado opened this issue Dec 16, 2024 · 0 comments
Labels
1 - Bug Incorrect behavior of the product

Comments

@mpitblado
Copy link

Describe the bug
When entering a string of text into a query combobox in the paleocontext subform, the results will not display unless the user scrolls. The direction that the user needs to scroll to get the suggestions box to display is not consistent overall, sometimes it is up, and sometimes it is down. The direction that the user will need to scroll is always consistent once the text box is in focus (i.e. once the user is in the box, the direction is not going to change, but if they exit the box and re-enter, then the direction may change)

The bug can be replicated in the other query combobox within the Paleo Context field, but could not be replicated in the locality query combobox (both shown in the screenshots attached). Below is the view definition for the Paleo Context subview within the Collecting Event view.

<row>
    <cell type="subview" viewname="SubPaleoContext" id="pc" name="paleoContext" colspan="14" rows="3"/>
</row>

The SubPaleoContext view. Note that the chronostrat querycbx contains two parameters in the initialize option which I have not seen elsewhere, displaydlg=ChronosStratDisplay;searchdlg=ChronosStratSearch. In a search of the codebase, these parameters seem to only be present in paleocontext views.

<viewdef name="SubPaleoContext" class="edu.ku.brc.specify.datamodel.PaleoContext" type="form" gettable="edu.ku.brc.af.ui.forms.DataGetterForObj" settable="edu.ku.brc.af.ui.forms.DataSetterForObj">
	<desc>Stratigraphy subform within Collection Object form.</desc>
	<enableRules/>
	<columnDef>100px,2px,195px,5px,59px,2px,195px,5px,67px,2px,195px,0px,p:g</columnDef>
	<columnDef os="lnx">115px,2px,210px,5px,74px,2px,210px,5px,82px,2px,210px,0px,p:g</columnDef>
	<columnDef os="mac">130px,2px,236px,5px,82px,2px,236px,5px,96px,2px,236px,0px,p:g</columnDef>
	<columnDef os="exp">p,2px,p:g,5px:g,p,2px,p:g,5px:g,p,2px,p:g,0px</columnDef>
	<rowDef auto="true" cell="p" sep="2dlu"/>
	<rows>
		<row>
			<cell type="label" labelfor="2"/>
			<cell type="field" id="2" name="chronosStrat" uitype="querycbx" initialize="name=ChronosStrat;displaydlg=ChronosStratDisplay;searchdlg=ChronosStratSearch;editBtn=false;viewBtn=true" isrequired="false"/>
			<cell type="label" labelfor="3"/>
			<cell type="field" id="3" name="lithoStrat" uitype="querycbx" initialize="name=LithoStrat;editBtn=false;viewBtn=true"/>
		</row>
		<row>
			<cell type="label" labelfor="4"/>
			<cell type="field" id="4" name="remarks" uitype="textareabrief" rows="2" colspan="10"/>
		</row>
	</rows>
</viewdef>

To Reproduce
I can consistently reproduce this behaviour across three records, following the steps below. I cannot reproduce on a new record through the data entry tab.

  1. Run a query for Collection Objects for records that have an embedded Paleo Context in the Collecting Event form (sufficient, but not proven necessary)
  2. Open a record using Browse in Forms
  3. Scroll down to a query combobox in the paleocontext table, begin to type in text.
  4. Notice that no suggestions appear, not even "Nothing found" or "+ Add"
  5. Scroll up or down, until the suggestions are visible.

Expected behavior
The suggestions would be visible immediately upon entering text (the expected behaviour of the query combobox field type)

Screenshots
The screenshots below were taken of the same record.

  1. Initially typing text into the box
    query-combobox-bug-screenshot-2

  2. After scrolling down
    query-combobox-bug-screenshot-1

Please fill out the following information manually:

  • OS: Windows 10
  • Browser: Firefox 133.0.3
  • Specify 7 Version: 7.9.2
  • Database Name: Beaty
  • Collection name: Fossils

Reported By
Beaty Biodiversity Museum

@mpitblado mpitblado added the 1 - Bug Incorrect behavior of the product label Dec 16, 2024
@mpitblado mpitblado changed the title Query combobox auto suggestions disappear on scroll in popover for embedded PaleoContext in query results Query combobox auto suggestions require scroll in popover for embedded PaleoContext in query results Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product
Projects
None yet
Development

No branches or pull requests

1 participant