Skip to content

Commit 01f5c1e

Browse files
committed
fix: macos input focus issue in draggable regions
port fix from ipfs/ipfs-desktop#2983 to ensure interactive elements (inputs, buttons, selects) work properly within electron's draggable regions by setting app-region: no-drag this resolves left-click focus issues on macos where inputs were not receiving focus due to pointer events being blocked
1 parent 0e00305 commit 01f5c1e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/index.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,19 @@ html, body, #root {
3838
font-size: 14px !important;
3939
font-family: 'Montserrat';
4040
}
41+
42+
/* =========================
43+
Interactive elements in draggable regions
44+
========================= */
45+
46+
/* Ensure interactive elements work properly within draggable regions */
47+
input:not([type="hidden"]),
48+
textarea,
49+
select,
50+
button,
51+
[role="button"],
52+
[contenteditable="true"] {
53+
-webkit-app-region: no-drag !important;
54+
app-region: no-drag !important;
55+
pointer-events: auto;
56+
}

0 commit comments

Comments
 (0)