Skip to content

Private/caolan/csv import dialog focus#15572

Open
caolanm wants to merge 4 commits intomainfrom
private/caolan/csv_import_dialog_focus
Open

Private/caolan/csv import dialog focus#15572
caolanm wants to merge 4 commits intomainfrom
private/caolan/csv_import_dialog_focus

Conversation

@caolanm
Copy link
Copy Markdown
Contributor

@caolanm caolanm commented Apr 17, 2026

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

caolanm added 4 commits April 18, 2026 11:29
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6f7a5d5d0ffbda25a0275fbd73afa285e395258a
because <select> DOM elements have a .length property and
so the focus is attempted on an inner option instead of
the element itself.

That wasn't the intent of the length check, just an
unfortunate javascript collision

Seen in the CSV Text Import Dialog.

<select> DOM elements also have a .length property

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I128c8b372d2ec837a2cd5b750614d41480c510f6
try the suggested focus candidate, if it can't take focus, try a child
of that, then fallback to something from the list of candidates that can
take focus, but with 'X' as lowest priority

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7923065cfdb99a69ebb8ca91e26225cf115b8b4b
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia89aafd6fc2af1dc9567f4d7d945663384a8f232
@caolanm caolanm force-pushed the private/caolan/csv_import_dialog_focus branch from 902cf49 to 27a8d87 Compare April 18, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

1 participant