Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: support mouse select in expression autocomplete (#2772)

Bogdan Chadkindb94f021a617
diff --git a/apps/builder/app/builder/shared/expression-editor.tsx b/apps/builder/app/builder/shared/expression-editor.tsx
index 3e36b884eb..92a48585dd 100644
--- a/apps/builder/app/builder/shared/expression-editor.tsx
+++ b/apps/builder/app/builder/shared/expression-editor.tsx
@@ -169,6 +169,8 @@ const autocompletionStyle = css({
...textVariants.mono,
border: "none",
backgroundColor: "transparent",
+ // override none set on body by radix popover
+ pointerEvents: "auto",
"& ul": {
minWidth: 160,
maxWidth: 260,
@@ -188,7 +190,7 @@ const autocompletionStyle = css({
color: theme.colors.foregroundMain,
padding: theme.spacing[3],
borderRadius: theme.borderRadius[3],
- "&[aria-selected]": {
+ "&[aria-selected], &:hover": {
color: theme.colors.foregroundMain,
backgroundColor: theme.colors.backgroundItemMenuItemHover,
},