Skip to content

Commit 8bb767d

Browse files
salesfelipeestacioneto
authored andcommitted
Remove form element to avoid dom validation error
1 parent fa94a73 commit 8bb767d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Remove **form** element from **InputSearch** to avoid errors of dom validation.
13+
1014
## [9.145.0] - 2021-07-12
1115

1216
### Added

react/components/EXPERIMENTAL_Table/Toolbar/InputSearch.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ export type InputSearchProps = InputHTMLAttributes<HTMLInputElement> & {
1111
const InputSearch: FC<InputSearchProps> = props => {
1212
const { testId } = useToolbarContext()
1313
return (
14-
<form
14+
<div
1515
id={NAMESPACES.TOOLBAR.INPUT_SEARCH}
1616
data-testid={`${testId}__search-form`}
17-
className={ORDER_CLASSNAMES.TOOLBAR_CHILD.INPUT}
18-
onSubmit={e => {
19-
e.preventDefault()
20-
}}>
17+
className={ORDER_CLASSNAMES.TOOLBAR_CHILD.INPUT}>
2118
<Input testId={`${testId}__search-form__input`} {...props} />
22-
</form>
19+
</div>
2320
)
2421
}
2522

0 commit comments

Comments
 (0)