diff --git a/sandpack-react/src/components/FileExplorer/utils.ts b/sandpack-react/src/components/FileExplorer/utils.ts index 0b00b3112..d73ee539d 100644 --- a/sandpack-react/src/components/FileExplorer/utils.ts +++ b/sandpack-react/src/components/FileExplorer/utils.ts @@ -14,8 +14,7 @@ export const fromPropsToModules = ({ const hasVisibleFilesOption = visibleFiles.length > 0; /** - * When visibleFiles are set, the hidden - * and active flags on the files prop are ignored. + * When visibleFiles or activeFile are set, the hidden and active flags on the files prop are ignored. * @see: https://sandpack.codesandbox.io/docs/getting-started/custom-content#visiblefiles-and-activefile */ const filterByHiddenProperty = autoHiddenFiles && !hasVisibleFilesOption;