Skip to content

Commit 203ecc3

Browse files
committed
feat: default label changed
1 parent 5c8446a commit 203ecc3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/web/src/components/search/SearchBox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,8 @@ const SearchBox = (props) => {
16871687
})}
16881688
{isOpen && renderLoader()}
16891689
{isOpen && renderError()}
1690+
{/* When custom renderer(render prop) is passed,
1691+
it takes care of rendering the suggestion box. */}
16901692
{isOpen && hasSuggestions() && !hasCustomRenderer(props) ? (
16911693
<ul
16921694
css={searchboxSuggestions(

packages/web/src/components/search/__snapshots__/SearchBox.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8069,7 +8069,7 @@ exports[`should render SearchBox with Document suggestions 1`] = `
80698069
className="section-list-item__label"
80708070
dangerouslySetInnerHTML={
80718071
Object {
8072-
"__html": "For recent document suggestions, please implement a renderItem method to display label.",
8072+
"__html": "For document suggestions, please implement a renderItem method to display label.",
80738073
}
80748074
}
80758075
style={undefined}
@@ -8148,7 +8148,7 @@ exports[`should render SearchBox with Document suggestions 1`] = `
81488148
className="section-list-item__label"
81498149
dangerouslySetInnerHTML={
81508150
Object {
8151-
"__html": "For recent document suggestions, please implement a renderItem method to display label.",
8151+
"__html": "For document suggestions, please implement a renderItem method to display label.",
81528152
}
81538153
}
81548154
style={undefined}

0 commit comments

Comments
 (0)