mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 22:03:58 +00:00
fix(app): middle-click tab close in scrollable tab bar (#15081)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
parent
392a6d993f
commit
aae75b3cfb
@ -65,6 +65,11 @@ function TabsTrigger(props: ParentProps<TabsTriggerProps>) {
|
||||
...(split.classList ?? {}),
|
||||
[split.class ?? ""]: !!split.class,
|
||||
}}
|
||||
onMouseDown={(e) => {
|
||||
if (e.button === 1 && split.onMiddleClick) {
|
||||
e.preventDefault()
|
||||
}
|
||||
}}
|
||||
onAuxClick={(e) => {
|
||||
if (e.button === 1 && split.onMiddleClick) {
|
||||
e.preventDefault()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user