File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/web/src/components/search Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments