jojo/web_src/js/features
forgejo-backport-action 0b0aa6170f [v15.0/forgejo] Make label dropdown menu items with .tw-hidden unselectable (#11966)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/11858

Fixes https://codeberg.org/forgejo/forgejo/issues/9894.

The dropdown menu items are being hidden with `.tw-hidden`. The Fomentic dropdown  makes items with `.disabled` and `.filtered` unselectable by default but can be [easily configured](https://fomantic-ui.com/modules/dropdown.html#/settings) to broaden this selector.

In the before & after GIFs attached, there is an archived label between "duplicate" and "help wanted". In the before GIF, focus disappears momentarily between the two, which is when the hidden, archived label has been programmatically focused by Fomentic. In the after GIF, focus hops instantaneously between the two selectable labels because of the broader `unselectable` selector.

### Tests for JavaScript changes

(can be removed for Go changes)

- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https
- [ ]
- [ ] ://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [ ] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

*The decision if the pull request will be shown in the release notes is up to the mergers / release team.*

The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.

Co-authored-by: Henry Catalini Smith <henry@catalinismith.se>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11966
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2026-04-03 18:45:32 +02:00
..
admin
comp [v15.0/forgejo] Fix @mention combobox semantics for screen reader accessibility (#11922) 2026-04-01 02:17:05 +02:00
autofocus-end.js
captcha.js
clipboard.js
code-frequency.js fix(i18n): hardcoded strings in repository activity graphs (#11735) 2026-03-19 15:41:33 +01:00
codeeditor.ts feat(ui): replace Monaco with CodeMirror (#10559) 2026-01-04 23:52:33 +01:00
codemirror-lang.ts feat: support C3 language highlighting in file editor (#11241) 2026-02-16 06:40:36 +01:00
codemirror-search.ts feat(ui): replace Monaco with CodeMirror (#10559) 2026-01-04 23:52:33 +01:00
codemirror.ts feat(ui): replace Monaco with CodeMirror (#10559) 2026-01-04 23:52:33 +01:00
colorpicker.js
common-global.js fix(ui/mde): inputs in table/link insertion modals (#11341) 2026-03-02 23:32:40 +01:00
common-issue-list.js
common-issue-list.test.js
common-organization.js
contextpopup.js
contributors.js
copycontent.js
dashboard-repo-list.ts
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js
install.js
notification.js
org-team.js
pull-view-file.js
recent-commits.js fix(i18n): hardcoded strings in repository activity graphs (#11735) 2026-03-19 15:41:33 +01:00
repo-action-view.ts feat: link CI job to its defining workflow file (#11216) 2026-02-20 03:11:29 +01:00
repo-activity-top-authors.ts
repo-branch-tag-selector.js
repo-branch.ts
repo-code.test.ts
repo-code.ts
repo-commit.js fix(ui): improve Git notes editing (#11365) 2026-03-10 23:49:18 +01:00
repo-common.js
repo-diff-commit.js
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js fix: process dynamically added content via htmx (#10572) 2025-12-29 20:54:49 +01:00
repo-editor.js feat(ui): replace Monaco with CodeMirror (#10559) 2026-01-04 23:52:33 +01:00
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js
repo-issue-list.js feat: improve label filtering exclusion (#10702) 2026-02-08 00:31:31 +01:00
repo-issue-pr-form.js
repo-issue-pr-status.js
repo-issue-sidebar-list.ts feat: improve label filtering exclusion (#10702) 2026-02-08 00:31:31 +01:00
repo-issue.js fix: normalize issue title case when matching prefixes (#11190) 2026-02-09 15:38:14 +01:00
repo-issue.test.js fix: normalize issue title case when matching prefixes (#11190) 2026-02-09 15:38:14 +01:00
repo-legacy.js [v15.0/forgejo] Make label dropdown menu items with .tw-hidden unselectable (#11966) 2026-04-03 18:45:32 +02:00
repo-migrate.js
repo-migration.js
repo-milestone.js
repo-projects.js
repo-release.js
repo-search.js
repo-settings.js feat(ui): replace Monaco with CodeMirror (#10559) 2026-01-04 23:52:33 +01:00
repo-template.js
repo-unicode-escape.js
repo-wiki.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js