diff --git a/.changeset/wet-dingos-push.md b/.changeset/wet-dingos-push.md new file mode 100644 index 000000000..c76ba61f2 --- /dev/null +++ b/.changeset/wet-dingos-push.md @@ -0,0 +1,5 @@ +--- +"@cube-dev/ui-kit": patch +--- + +Fix form submission by Enter key. diff --git a/src/components/fields/TextInput/TextInputBase.tsx b/src/components/fields/TextInput/TextInputBase.tsx index bb245c650..e9d5d2148 100644 --- a/src/components/fields/TextInput/TextInputBase.tsx +++ b/src/components/fields/TextInput/TextInputBase.tsx @@ -366,6 +366,7 @@ function _TextInputBase(props: CubeTextInputBaseProps, ref) { as={ElementType} {...mergeProps(inputProps, focusProps, hoverProps)} ref={inputRef} + form={null} rows={multiLine ? rows : undefined} mods={modifiers} style={textSecurityStyles}