Skip to content

Commit 0be20c8

Browse files
authored
fix(Input): form submission by enter key (#778)
1 parent 8179512 commit 0be20c8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/wet-dingos-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Fix form submission by Enter key.

src/components/fields/TextInput/TextInputBase.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ function _TextInputBase(props: CubeTextInputBaseProps, ref) {
366366
as={ElementType}
367367
{...mergeProps(inputProps, focusProps, hoverProps)}
368368
ref={inputRef}
369+
form={null}
369370
rows={multiLine ? rows : undefined}
370371
mods={modifiers}
371372
style={textSecurityStyles}

0 commit comments

Comments
 (0)