-
Notifications
You must be signed in to change notification settings - Fork 25
Description
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
- Create a fresh Hyrax project with the versions mentioned above
- Make sure turbolinks isn't in your project
- 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.
