Restore #10096/#8638 and re-fix #15172 (#16576) (#16617)

Backport #16576

This PR restores the vendored and patched dropdow from #8638. It
however, it partially abandons the call to `click()` using instead the
default dropdown click calls instead. This prevents the issue of the
dropdown grabbing focus permanently however, this may have negative
effects on the effect of focus on the dropdowns.

Of note, the behaviour of the template selector dropdown on the repo
creation page is slightly odd - I don't believe that this odd behaviour
is caused by this PR but rather by the feed source for this. I suspect
that the dropdown should be adding a delete button to its selection.

Fix #15172
References: #7057

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2021-08-04 13:31:10 +01:00 committed by GitHub
parent f9120092c1
commit 40687a2160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4450 additions and 10 deletions

4338
web_src/js/vendor/dropdown.js vendored Normal file

File diff suppressed because it is too large Load diff