From 937a7ba5c796d31d3e51b31cca13f71daa4b8336 Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Thu, 4 Sep 2025 17:24:37 +0200 Subject: [PATCH] fix(Input): form submission by enter key --- .changeset/wet-dingos-push.md | 5 +++++ src/components/fields/TextInput/TextInputBase.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/wet-dingos-push.md 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}