File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
react/components/EXPERIMENTAL_Table/Toolbar Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fixed
11
+
12
+ - Remove ** form** element from ** InputSearch** to avoid errors of dom validation.
13
+
10
14
## [ 9.145.0] - 2021-07-12
11
15
12
16
### Added
Original file line number Diff line number Diff line change @@ -11,15 +11,12 @@ export type InputSearchProps = InputHTMLAttributes<HTMLInputElement> & {
11
11
const InputSearch : FC < InputSearchProps > = props => {
12
12
const { testId } = useToolbarContext ( )
13
13
return (
14
- < form
14
+ < div
15
15
id = { NAMESPACES . TOOLBAR . INPUT_SEARCH }
16
16
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 } >
21
18
< Input testId = { `${ testId } __search-form__input` } { ...props } />
22
- </ form >
19
+ </ div >
23
20
)
24
21
}
25
22
You can’t perform that action at this time.
0 commit comments