summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-07-01 11:54:27 -0400
committerGitHub <[email protected]>2025-07-01 15:54:27 +0000
commit2bf8e8b2c7d58552710fc168478fb01aab69a37a (patch)
treeb18016d34d68a1c97ec4e3aa485061683e097b88 /packages/cli/src/ui/components/shared/MaxSizedBox.tsx
parent01186e3afff0269f242a6732f53a3987b0ae1f3a (diff)
Fix spurious logs about invalid MaxSizedBox children due to Ink6 + React19 migration (#2794)
Diffstat (limited to 'packages/cli/src/ui/components/shared/MaxSizedBox.tsx')
-rw-r--r--packages/cli/src/ui/components/shared/MaxSizedBox.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
index 8880e894..c803b680 100644
--- a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
+++ b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
@@ -278,7 +278,10 @@ function visitBoxRow(element: React.ReactNode): Row {
// Allow the key prop, which is automatically added by React.
maxExpectedProps += 1;
}
- if (boxProps.flexDirection !== 'row') {
+ if (
+ boxProps.flexDirection !== undefined &&
+ boxProps.flexDirection !== 'row'
+ ) {
debugReportError(
'MaxSizedBox children must have flexDirection="row".',
element,