File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/editor/src/core/extensions/mentions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ export const MentionsListDropdown = forwardRef(function MentionsListDropdown(pro
7979 // debounced search callback
8080 const debouncedSearchCallback = useCallback (
8181 debounce ( async ( searchQuery : string ) => {
82- setIsLoading ( true ) ;
8382 try {
8483 const sectionsResponse = await searchCallback ?.( searchQuery ) ;
8584 if ( sectionsResponse ) {
@@ -96,7 +95,8 @@ export const MentionsListDropdown = forwardRef(function MentionsListDropdown(pro
9695
9796 // trigger debounced search when query changes
9897 useEffect ( ( ) => {
99- if ( query ) {
98+ if ( query !== undefined && query !== null ) {
99+ setIsLoading ( true ) ;
100100 void debouncedSearchCallback ( query ) ;
101101 }
102102 } , [ query , debouncedSearchCallback ] ) ;
You can’t perform that action at this time.
0 commit comments