IndiciaFns.addRowToGrid is called for each grid on a page and adds an event handler for the edit buttons each time.
The selelctor is .edit-taxon-name which is not specific enough and applies to all edit buttons on all grids.
The consequence is that
On clicking an edit button, as many event handlers are called as there are grids on the page.
The triumphant autocomplete that the user interacts with may reference the wrong species list.
The selector needs to specify the grid like #<gridId> .edit-taxon-name
IndiciaFns.addRowToGrid
is called for each grid on a page and adds an event handler for the edit buttons each time. The selelctor is.edit-taxon-name
which is not specific enough and applies to all edit buttons on all grids. The consequence is thatThe selector needs to specify the grid like
#<gridId> .edit-taxon-name
This arises from https://github.com/BiologicalRecordsCentre/ABLE/issues/584