Skip to content

JS events don't seem to happen on the new importer page #1078

@hippietilley

Description

@hippietilley

Summary

I'm working on a fresh Hyrax-based application using Ruby 3.3.7, Rails 7.2.2, Hyrax 5.2.0, and Bulkrax 9.3.1. After installing Bulkrax, when trying to add a new importer the form loads all the parser fields. I tried logging all the JS events and didn't see any after the initial DOMContentLoaded event, but I could manipulate the form fields in the dev console. I think this is happening because Bulkrax's JS only looks for turbolinks:load ready events to setup some of the JS listeners. I don't want to use the Turbolinks library as it's an abandoned gem and no longer in development.

Expected behavior

I expect the form to only load the extra parser fields after a parser is selected in the form.

Steps to reproduce

  1. Create a fresh Hyrax project with the versions mentioned above
  2. Make sure turbolinks isn't in your project
  3. Try to add an importer via the new importer form

I had to zoom out quite a bit to get several parser's fields, but you can see the CSV/ZIP, Bagit, and XML parser fields in this screenshot.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions