Bug 31406 - Set focus for cursor to Name input when adding a new item search field
Summary: Set focus for cursor to Name input when adding a new item search field
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Isobel Graham
QA Contact: Testopia
URL:
Keywords: Academy
Depends on: 32126
Blocks: 31411
  Show dependency treegraph
 
Reported: 2022-08-18 21:50 UTC by Katrin Fischer
Modified: 2022-11-10 10:30 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 31406: Set focus to name on new fields (1.50 KB, patch)
2022-11-06 15:04 UTC, Isobel Graham
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.