Skip to content

Commit 2257ccb

Browse files
authored
fix: add type button to DataGridSearch (#1054)
1 parent 9fab713 commit 2257ccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/internal/data-grid-search/data-grid-search.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ const DataGridSearch: React.FunctionComponent<DataGridSearchProps> = p => {
408408
onKeyDownCapture={onSearchKeyDown}
409409
/>
410410
<button
411+
type="button"
411412
aria-label="Previous Result"
412413
aria-hidden={!showSearch}
413414
tabIndex={showSearch ? undefined : -1}
@@ -416,6 +417,7 @@ const DataGridSearch: React.FunctionComponent<DataGridSearchProps> = p => {
416417
{upArrow}
417418
</button>
418419
<button
420+
type="button"
419421
aria-label="Next Result"
420422
aria-hidden={!showSearch}
421423
tabIndex={showSearch ? undefined : -1}
@@ -425,6 +427,7 @@ const DataGridSearch: React.FunctionComponent<DataGridSearchProps> = p => {
425427
</button>
426428
{onSearchClose !== undefined && (
427429
<button
430+
type="button"
428431
aria-label="Close Search"
429432
aria-hidden={!showSearch}
430433
data-testid="search-close-button"

0 commit comments

Comments
 (0)