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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Enter has no effect if menu is open and no value selected (#607)
Ivan Starkov23a19b682e1c
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsxindex 248b3d3574..a6bf5b9ef2 100644--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx@@ -261,6 +261,7 @@ export const CssValueInput = ({getMenuProps,getItemProps,isOpen,+ highlightedIndex,} = useCombobox<CssValueInputValue>({items: keywords,value,@@ -333,8 +334,9 @@ export const CssValueInput = ({};const handleKeyDown = useHandleKeyDown({- // In case of menu is really open do not prevent default downshift Enter key behaviour- ignoreEnter: isOpen && !menuProps.empty,+ // In case of the menu is really open and the selection is inside it+ // we do not prevent the default downshift Enter key behavior+ ignoreEnter: isOpen && !menuProps.empty && highlightedIndex !== -1,onChangeComplete,value,onChange: props.onChange,