You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/autocomplete-js/src/getDefaultOptions.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ export function getDefaultOptions<TItem extends BaseItem>(
102
102
);
103
103
104
104
warn(
105
-
Boolean(!render||renderer?.render),
105
+
!(render&&renderer&&!renderer?.render),
106
106
`You provided the \`render\` option but did not provide a \`renderer.render\`. Since v1.6.0, you can provide a \`render\` function directly in \`renderer\`.`+
107
107
`\nTo get rid of this warning, do any of the following depending on your use case.`+
108
108
"\n- If you are using the `render` option only to override Autocomplete's default `render` function, pass the `render` function into `renderer` and remove the `render` option."+
0 commit comments