Collection Creation Failure - When Pressing Return (Web Platform)

Location of Issue/Error: Create Collection button found on https://www.zotero.org/{USERNAME}/items

Summary: User experience issue/error when creating a collection in a Library. If a user presses 'Enter' or 'Return', the pop up closes and no collection is create (See more details below).

Issue/error:
- When I am going to create a collection in my Library, by default when filling out a form, I use the Enter key for speed. When I've entered the name of my new collection into the small form and press Enter, the popup form closes and seems to reload the page. Once the reload happens, the collection I tried to create doesn't appear.
- Once I have performed the above step and try to reload the page manually afterwards, I get the following JavaScript Alert: "The page that you're looking for used information that you entered. Returning to that page might cause any action you took to be repeated. Do you want to continue?"

Mitigation:
- If I use the 'Create' button in the popup form, the collection is created.

Possible fix:
- Adding a simple KeyDown event on Return/Enter in the JavaScript to fire when that popup form is open.

I have tried looking through you code on GitHub to create a pull request with the fix myself, but I found the file structure hard to read and hard to find the snippet of code to fix.

Many thanks,
Ryan

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.