sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: [codemod] `v6.0.0/styled`, `v6.0.0/sx-prop`, `v6.0.0/theme-v6` codemods fail parsing tokens
Labels: package: codemod,enhancement

### Steps to reproduce

Link to live example: (required)

Steps:
1. Run `npx @mui/codemod@next v6.0.0/styled packages` on the latest [`mui-x` master](https://github.com/mui/mui-x) branch
2. Observe multiple (56) errors


### Current behavior

A few example errors:
```
mui/mui-x/packages/x-date-pickers/tsconfig.build.json Transformation error (Missing semicolon. (4:11))
SyntaxError: Missing semicolon. (4:11)
```
```
mui/mui-x/packages/x-license/package.json Transformation error (Missing semicolon. (2:8))
SyntaxError: Missing semicolon. (2:8)
```
```
mui/mui-x/packages/x-date-pickers/src/AdapterLuxon/AdapterLuxon.ts Transformation error (Unexpected token (149:34))
SyntaxError: Unexpected token (149:34)
```
```
mui/mui-x/packages/x-data-grid/src/models/gridColumnGrouping.ts Transformation error (Unexpected token (25:25))
SyntaxError: Unexpected token (25:25)
```

### Expected behavior

Codemod does not produce the above errors, but ignores the code that it does not need to transform.

### Context

_No response_

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
System:
    OS: macOS 14.5
  Binaries:
    Node: 18.20.2 - ~/.nvm/versions/node/v18.20.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v18.20.2/bin/npm
    pnpm: 9.6.0 - ~/.nvm/versions/node/v18.20.2/bin/pnpm
  Browsers:
    Chrome: 127.0.6533.89
    Edge: 127.0.2651.86
    Safari: 17.5
  npmPackages:
    @emotion/react: ^11.13.0 => 11.13.0 
    @emotion/styled: ^11.13.0 => 11.13.0 
    @mui/icons-material: ^5.16.5 => 5.16.5 
    @mui/internal-markdown: ^1.0.8 => 1.0.8 
    @mui/internal-test-utils: ^1.0.5 => 1.0.5 
    @mui/material: ^5.16.5 => 5.16.5 
    @mui/monorepo: github:mui/material-ui#4a82b6b0e0395db8fa0a0d49b6b76de4516b1579 => 6.0.0-beta.4 
    @mui/utils: ^5.16.5 => 5.16.5 
    @types/react: ^18.3.3 => 18.3.3 
    react: ^18.3.1 => 18.3.1 
    react-dom: ^18.3.1 => 18.3.1 
    typescript: ^5.5.4 => 5.5.4 
```
</details>


**Search keywords**: codemod, styles
Repository: rust
Issue: run-make: investigate if we can make tests with linkage less error-prone
Labels: C-cleanup,A-linkage,E-hard,T-compiler,O-windows-msvc,A-compiletest,A-run-make,E-needs-design,E-needs-investigation

In #128807 we found out that for `fmt-write-bloat` we needed to do (on Windows):

```diff
- #[link(name = "c")]
+ #[cfg_attr(not(target_env = "msvc"), link(name = "c"))]
+ #[cfg_attr(all(target_env = "msvc", target_feature = "crt-static"), link(name = "libcmt"))]
+ #[cfg_attr(all(target_env = "msvc", not(target_feature = "crt-static")), link(name = "msvcrt"))]
extern "C" {}
```

in order for the test to not be `ignore-windows-msvc`.

> The trouble here is that libc doesn't exist on Windows. Well it kinda does but it isn't called that so we substitute a name that works.

It also can't just be `#[cfg_attr(target_env = "msvc", link(name = "libcmt"))]` simply, because that would fail with

```
warning LNK4098: defaultlib 'msvcrt' conflicts with use of other libs
```

We should find a way to make this less tricky / error-prone (because this is very non-obvious).

@ChrisDenton [said](https://github.com/rust-lang/rust/pull/128807/files#r1709278373)

>  I do think this logic should ideally either be in run-make-support or better yet compiletest could have something like a `NO_STD_EXTRA_ARGS` variable that any test can use. Or at least I think that's better than individual tests needing to figure it out. But I'm not entirely sure how best to approach that.
Repository: ant-design
Issue: 暗色主题下，Tree的滚动条颜色难以辨认
Labels: 💡 Feature Request,Inactive

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/antd-reproduce-5x-kcuhn7?file=demo.tsx)

### Steps to reproduce

- 使用暗色主题
- 设置Tree的height并添加数据使其出现滚动条

### What is expected?

滚动条有更明显的颜色

### What is actually happening?

滚动条颜色几乎和背景颜色一样

| Environment | Info |
| --- | --- |
| antd | 5.20.0 |
| React | * |
| System | windows 11 |
| Browser | Edge 125 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: stable-diffusion-webui
Issue: [Bug]: SwinIR v2 support regressed?
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

SwinIR v2 support was added and merged here: #2092

I noticed that this doesn't actually work today (the PR was merged 2 years ago). The SwinIR v2 models show up in the UI, but they crash the UI. There's also a message:

```
Swin2SR_RealworldSR_X4_64_BSRGAN_PSNR.v2.pth' is not a 'SwinIR' model (got 'Swin2SR')
```

I couldn't even find the module for SwinIR anymore, and it looks like it has been rewritten at some point to be a builtin extension.

In the SwinIR extension, I can't see any separate handling of Swin2SR anymore, and no handling for the `.v2.pth` extension added in the aforementioned PR.

Was the Swin2SR support removed on purpose, or did it happen by accident during the architectural change from a module to a builtin extension?

### Steps to reproduce the problem

1. Download Swin2SR (`Swin2SR_RealworldSR_X4_64_BSRGAN_PSNR.pth`) from https://github.com/mv-lab/swin2sr/releases/tag/v0.0.1
2. Rename it to have the `.v2.pth` file extension as mentioned in #2092 
3. Restart the webUI
4. Select upscaler `Swin2SR_RealworldSR_X4_64_BSRGAN_PSNR.v2`
5. Observe the crash when trying to generate an image with upscaling enabled

### What should have happened?

I would've expected the Swin2 architecture to be supported, as support for it has already been merged two years ago.

### What browsers do you use to access the UI ?

Apple Safari

### Sysinfo

[sysinfo-2024-08-08-12-53.json](https://github.com/user-attachments/files/16548308/sysinfo-2024-08-08-12-53.json)


### Console logs

```Shell
Relevant part:


WARNING:modules.modelloader:Model '/Users/splitty/Developer/stable-diffusion-webui/models/SwinIR/Swin2SR_RealworldSR_X4_64_BSRGAN_PSNR.v2.pth' is not a 'SwinIR' model (got 'Swin2SR')
SwinIR:   0%|                                                                                       | 0/9 [00:00<?, ?it/s]Assertion failed: (0 <= mpsAxis && mpsAxis < 4 && "Runtime canonicalization must simplify reduction axes to minor 4 dimensions."), function getKernelAxes, file GPUReductionOps.mm, line 31.
./webui.sh: line 304: 97131 Abort trap: 6           "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
/Users/splitty/miniconda3/lib/python3.11/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
```
```


### Additional information

_No response_
Repository: vscode
Issue: .ipynb scrolls incorrectly when a cell execution reduces (existing) output
Labels: bug,notebook-layout


Type: <b>Bug</b>

Create a fresh .ipynb with 3 cells:

```python
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
```

```python
for i in range(0):
    i
    print('-\n' * 10)
'foo'
```

```python
for i in range(10):
    i
    print(f'X\n' * 10)
```

Execute all.
Now replace `range(10)` with `range(0)` in the second cell and re-execute that.

You'll notice the display jumps to somewhere near the bottom of the third cell's output.

I'll attach a video.

VS Code version: Code 1.92.0 (b1c0a14de1414fcdaa400695b4db1c0799bc3124, 2024-07-31T23:26:45.634Z)
OS version: Darwin arm64 23.5.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M2 (8 x 2400)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|2, 2, 2|
|Memory (System)|24.00GB (0.83GB free)|
|Process Argv|--crash-reporter-id f10d97cd-2115-4dba-a34a-07be9312995a|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (21)</summary>

Extension|Author (truncated)|Version
---|---|---
dvt-remote-ssh|ami|1.0.0
nestedtext|bma|2.0.0
githistory|don|0.6.20
copilot|Git|1.221.0
copilot-chat|Git|0.19.2024073102
vsc-python-indent|Kev|1.18.0
rainbow-csv|mec|3.12.0
vscode-docker|ms-|1.29.1
debugpy|ms-|2024.10.0
python|ms-|2024.12.2
vscode-pylance|ms-|2024.8.1
jupyter|ms-|2024.7.0
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.19
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.380.0
remote-ssh|ms-|0.112.0
remote-ssh-edit|ms-|0.86.0
remote-explorer|ms-|0.4.3
yaml-cloudformation-highlighter|paq|2.0.4

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
refactort:31108082
ccplc:31103425
pythonrstrctxt:31112756
wkspc-onlycs-c:31111717
wkspc-ranged-c:31111712

```

</details>

<!-- generated by issue reporter -->
Repository: next.js
Issue: unstable_cache gets called multiple times if it is being called in another function wrapped in unstable_cache
Labels: bug

### Link to the code that reproduces this issue

https://github.com/TarasDyda/NextJS-test/blob/main/app/page.tsx

### To Reproduce

Start the application by running `next dev` or `next start`.

### Current vs. Expected behavior

**Current behavior:**
`unstable_cache` gets called multiple times if it is being called in another function wrapped in `unstable_cache`.
**Expected behavior:**
`unstable_cache` gets called only once if it is being called in another function wrapped in `unstable_cache`.

### Provide environment information

```bash
Operating System:
  Platform: MacOS
  Arch: x64
  Version: Sonoma 14.6
  Available memory: 16 GB
  Available CPU cores: 6
Binaries:
  Node: 18.20.4
  npm: 10.7.0
  Yarn: 1.22.19
Relevant Packages:
  next: 14.2.5
  react: 18.0.0
  react-dom: 18.0.0
  typescript: 5
```


### Which area(s) are affected? (Select all that apply)

Developer Experience

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

### Additional context

_No response_
Repository: TypeScript
Issue: Variance annotations are not allowed in type aliases for intersections
Labels: Needs Investigation

### 🔎 Search Terms

variance measurement markers sub sup intersection type aliases

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.6.0-dev.20240808#code/C4TwDgpgBAKgYgewQHgGoEMA2BXCA+KAXigG8oFtgAuKDHaAXwG4AoUSWAIXQCc0tcBYmQCWAOxoAKXgHMadXAEoiBAG4IRAEyjM24aDG4AvZOPKVaA-EViIUC6wDIuvfvTysgA

### 💻 Code

```ts
interface Foo<Value> {
  out: Value;
}
interface Bar<Value> {
  in: (arg: Value) => void;
}

// }
interface Foo<Value> {
  out: Value;
}
interface Bar<Value> {
  in: (arg: Value) => void;
}

type Baz<in out Value> = Foo<Value> & Bar<Value>;

type First<in out Value> = Foo<Value>;
type Second<in out Value> = Bar<Value>;

// Variance annotations are only supported in type aliases for object, function, constructor, and mapped types.(2637)
type Baz<in out Value> = Foo<Value> & Bar<Value>;

// both members are allowed to have annotations
type First<in out Value> = Foo<Value>;
type Second<in out Value> = Bar<Value>;
```


### 🙁 Actual behavior

Error is raised

### 🙂 Expected behavior

I'd expect this to work, especially since https://github.com/microsoft/TypeScript/pull/56418 allowed it to work on more types. Note that this issue isn't even strictly related to using generic references as constituent members. The same issue happens with type aliases and interfaces

### Additional information about the issue

Maybe this is expected but I couldn't quickly find any issue related to it or an explicit mention of intersections being purposefully disallowed here
Repository: flutter
Issue: Add support for custom cluster icon in Google Map Flutter
Labels: c: new feature,p: maps,package,team-ecosystem,P3,triaged-ecosystem

### Use case

So Clustering in Google map is just landed but we don't have any support for custom cluster icon. There are some package on pub.dev but they are not proper solution to the problem.

### Proposal

Need some properties that can override default cluster marker.
Like this
https://developers.google.com/maps/documentation/android-sdk/utility/marker-clustering

The ClusterManager constructor creates a DefaultClusterRenderer and a NonHierarchicalDistanceBasedAlgorithm. You can change the ClusterRenderer and the Algorithm using the setAlgorithm(Algorithm<T> algorithm) and setRenderer(ClusterRenderer<T> view) methods of ClusterManager.

You can implement ClusterRenderer to customize the rendering of the clusters. DefaultClusterRenderer provides a good base to start from. By subclassing DefaultClusterRenderer, you can override the defaults.
Repository: godot
Issue: Check before adding a duplicate mapping to an action in the Input Map editor
Labels: enhancement,discussion,topic:editor,confirmed,topic:input

### Tested versions

v4.3.rc2.official [3978628c6]

### System information

w10 64

### Issue description

As can be seen in the screenshot, Godot always detects the same press as a new button.
Shouldn't godot not add the button if it's already added to the action?

In the image you can see that the same button has been added to the same action 4 times.

![Captura6](https://github.com/user-attachments/assets/a0a1f026-6ad7-427c-9090-698073eee843)


### Steps to reproduce

...

### Minimal reproduction project (MRP)

...
Repository: go
Issue: cmd/compile: PGO devirtualization of generic method call
Labels: Performance,NeedsInvestigation,compiler/runtime

Please see example at https://github.com/bboreham/go-loser/tree/lesser.

I would like [the call to `Less()`](https://github.com/bboreham/go-loser/blob/60386f6413e3e7fd6ca14eb9b2523a066f34e5d8/tree.go#L142) to be devirtualized and inlined, because the implementation is trivial.  
A version of the code using `<` instead of a `Less` method is [here](https://github.com/bboreham/go-loser/tree/benchmark); it runs about 40% faster.

Commands I ran in my attempt:

```
go1.23rc2 test -run xxx -bench '^BenchmarkMerge$' -cpuprofile pgo.pprof
go1.23rc2 test -pgo pgo.pprof -run xxx -bench '^BenchmarkMerge$'
```

(`go version go1.23rc2 linux/amd64`)

I tried to gain some insight via `-gcflags=-d=pgodebug=2`, I but don't really follow what it is telling me.

```
...
hot-node enabled increased budget=2000 for func=github.com/bboreham/go-loser_test.Uint64.Less
...
./tree.go:142:21: PGO devirtualize considering call (func(go.shape.uint64, go.shape.uint64) bool)(&loser..dict[2])(loser.node.value, loser.winningValue)
./tree.go:142:21: edge github.com/bboreham/go-loser.(*Tree[go.shape.uint64,go.shape.*uint8]).replayGames:5 -> github.com/bboreham/go-loser_test.Uint64.Less (weight 10): method(Uint64) func(Uint64) bool doesn't match func(go.shape.uint64, go.shape.uint64) bool
./tree.go:142:21: call github.com/bboreham/go-loser.(*Tree[go.shape.uint64,go.shape.*uint8]).replayGames:5: no hot callee
```

[This is something I was chatting with @prattmic about at GopherCon 2023; I just got round to writing it up]
Repository: ui
Issue: [bug]: "yarn" cli copy button copies "npm" cli
Labels: bug

### Describe the bug

Under the Installation section in any component, to copy the cli when selected "yarn", it copies the cli of "npm".
Instead of "yarn dlx shadcn-ui@latest add <component>", it copies "npx shadcn-ui@latest add <component>".

### Affected component/components

Every

### How to reproduce

1. Go to any component page (say: [Button](https://ui.shadcn.com/docs/components/button))
2. Navigate to [Installation](https://ui.shadcn.com/docs/components/button#installation) section
3. In the CLI tab press copy button and select yarn.

It will copy the cli for npm, instead of yarn

### Codesandbox/StackBlitz link

https://github.com/shadcn-ui/ui

### Logs

_No response_

### System Info

```bash
OS: Win 10
Browser: Chrome
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: go
Issue: cmd/link: TestScript/script_test_basics failures
Labels: NeedsInvestigation,compiler/runtime

```
#!watchflakes
default <- pkg == "cmd/link" && test == "TestScript/script_test_basics"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8740172093845188609)):

    === RUN   TestScript/script_test_basics
    === PAUSE TestScript/script_test_basics
    === CONT  TestScript/script_test_basics
        run.go:223: 2024-08-08T13:47:48Z
        run.go:225: $WORK=/home/swarming/.swarming/w/ir/x/t/TestScriptscript_test_basics2081478407/001
        run.go:232: 
            BOTO_CONFIG=/home/swarming/.swarming/w/ir/x/a/gsutil-bbagent/.boto
            CIPD_ARCHITECTURE=arm64
            CIPD_CACHE_DIR=/home/swarming/.swarming/w/ir/cache/cipd_cache
            CIPD_PROTOCOL=v2
    ...
            WORK=/home/swarming/.swarming/w/ir/x/t/TestScriptscript_test_basics2081478407/001
            TMPDIR=/home/swarming/.swarming/w/ir/x/t/TestScriptscript_test_basics2081478407/001/tmp
            
            # Test of the linker's script test harness. (4.143s)
            > go build
            > [!cgo] skip
            [condition not met]
            > cc -c testdata/mumble.c
        run.go:232: FAIL: testdata/script/script_test_basics.txt:6: cc -c testdata/mumble.c: exec: WaitDelay expired before I/O complete
    --- FAIL: TestScript/script_test_basics (4.15s)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: rust
Issue: `-Calign-jumps=1` support in `rustc`
Labels: A-LLVM,A-codegen,T-compiler,C-feature-request,A-CLI,A-rust-for-linux

i.e. the equivalent of `-falign-jumps=1` ([GCC](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-falign-jumps), Clang does not support it).
Repository: rust
Issue: `-Calign-loops=1` support in `rustc`
Labels: A-LLVM,A-codegen,T-compiler,C-feature-request,A-CLI,A-rust-for-linux

i.e. the equivalent of `-falign-loops=1` ([GCC](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-falign-loops), [Clang](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-falign-loops)).
Repository: rust
Issue: `-Cstack-alignment`/`-Cpreferred-stack-boundary` support in `rustc`
Labels: A-LLVM,A-codegen,T-compiler,C-feature-request,A-CLI,A-rust-for-linux

i.e. the equivalent of `-mpreferred-stack-boundary` ([GCC](https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html#index-mpreferred-stack-boundary-1), Clang does not support it) / `-mstack-alignment` (GCC does not support it, [Clang](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-mstack-alignment)).
Repository: go
Issue: x/pkgsite: remove -gorepo flag
Labels: NeedsInvestigation,pkgsite

There are two ways of setting the goroot to use for stdlib packages: one is the -gorepo flag, and the other is the GOROOT of the go command in PATH. Most of our tools use the GOROOT of the go command, so pkgsite should probably standardize on doing that.
Repository: PowerToys
Issue: 0.83 break mouse without borders
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.83.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

nothing, just suddenly not working

other report from outside
https://www.reddit.com/r/PowerToys/comments/1egkynr/mouse_without_borders_no_longer_works_after/

### ✔️ Expected Behavior

works again

### ❌ Actual Behavior

mwb is not working at all, time out

### Other Software

_No response_
Repository: go
Issue: x/build/cmd/watchflakes: should report broken bots
Labels: Builders,NeedsFix,FeatureRequest,Friction

Watchflakes should detect when a bot is broken or missing and create an issue which would alert the owners about the condition. This is bot specific making it a bit different than #58819.

cc @cherrymui @dmitshur
Repository: ui
Issue: [bug]: checkbox value not submitted in external form
Labels: bug

### Describe the bug

When form is passed as an attribute, checkbox does not contribute value to submitted data

```
const onSubmit = (e: FormEvent) => {
    e.preventDefault();
    const payload = Object.fromEntries(
      new FormData(e.target as HTMLFormElement).entries(),
    )
    // no foo key in payload
}

<form id={props.formId} onSubmit={onSubmit}><button>Submit</button></form>
<Checkbox
            name="foo"
            form={props.formId}
/>
```

The reason is Checkbox is implemented as button and does not have a correctly behaving HTML input element

Related issue https://github.com/shadcn-ui/ui/issues/733

### Affected component/components

Checkbox

### How to reproduce

1. Create a component with form as described
2. Check the checkbox
3. Submit the form
4. Observe FormData entries

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
@radix-ui/react-checkbox: 1.1.1
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: ant-design
Issue: Using `dropdownRender` in `Dropdown` to wrap menu in JSX breaks keyboard focus inside menu
Labels: help wanted,Inactive,⌨️ Accessibility

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/dropdown-render-hqmlr7)

### Steps to reproduce

In `<Dropdown />`, add a `dropdownRender` function that wraps the argument in any JSX -- HTML, fragments, other components. Tabbing into the menu no longer works, nor does using the up/down arrow keys to change options.

### What is expected?

Menu items are still accessible through the keyboard

### What is actually happening?

The menu items are no longer focusable from the keyboard. Using the arrow keys doesn't cycle through the options.

| Environment | Info |
| --- | --- |
| antd | 5.20.0 |
| React | React 18.2.0 |
| System | MacOS 14.5 |
| Browser | Chrome |

---
It would be ideal if `<Dropdown />` retains this behavior regardless of the content surrounding the menu items. It seems like, if it's using the default `Menu` functionality, there'd be a way to hook into that into the render function. Perhaps looking for focusable elements surrounding the rendered menu in case there's a need to focus out of the menu?

If that gets too complicated, there could be some form of instructions or API that allows us to access this functionality. The current `tabindex="-1"` prevents us from using the browser functionality.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->