Skip to content

Commit 7bfabff

Browse files
committed
fix to default display to be #flex
1 parent 69b5a17 commit 7bfabff

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/cold-trees-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"rescript-ink": patch
3+
---
4+
5+
Fix to default display to be #flex

packages/ink/src/Ink_Components_Box.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ let makeProps = (
3333
{
3434
"ref": ref,
3535
"children": children,
36-
"display": display,
36+
"display": switch display {
37+
| None => Some(#flex)
38+
| display => display
39+
},
3740
"flexGrow": flexGrow,
3841
"flexShrink": flexShrink,
3942
"flexBasis": switch flexBasis {

0 commit comments

Comments
 (0)