Bug 31406

Summary: Set focus for cursor to Name input when adding a new item search field
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: TemplatesAssignee: Isobel Graham <isobel.graham09>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, isobel.graham09, oleonard
Version: MainKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 32126    
Bug Blocks: 31411    
Attachments: Bug 31406: Set focus to name on new fields

Description Katrin Fischer 2022-08-18 21:50:49 UTC
When adding a new item search field from administration, the focus/cursor should be in the first field of the entry form: Name
Comment 1 Isobel Graham 2022-11-06 15:04:43 UTC
Created attachment 143344 [details] [review]
Bug 31406: Set focus to name on new fields

Focus is directed to the name field when
you want to add a new field.

Test plan
1. Got to administration and then item search
fields.
2. Add new field and focus should be set to
name.
Comment 2 David Nind 2022-11-07 19:30:09 UTC
Hi Isobel.

This isn't working for me after applying the patch on master.

I think something else is going on that is unrelated to your change (both before and after your patch is applied):
- I can add ONE new search field
- If I go to add another one, the body of the page is blank (navigation, etc is still in place) and I don't get the add new item search field form
- Have tried in different browsers (Firefox and Google Chrome)
- I checked on the latest 22.05 version, and this problem doesn't occur: I can successfully add multiple item search fields

I have created bug 32126 for this issue. Once that is fixed, this bug can be retested.

David
Comment 3 David Nind 2022-11-07 19:32:10 UTC
Status incorrectly changed!

Have changed back to Needs Signoff - once bug 32126 is fixed, this can be retested.
Comment 4 Katrin Fischer 2022-11-10 10:30:50 UTC
It should work... but it's also not working for me :(

In Firefox the cursor is somewhere outside the input field and I can't type.
In Chrome the cursor is 'nowhere'.

Adding Owen, maybe he has an idea why the focus class would not work here.