Skip to content

Commit

Permalink
bug(api): fix an issue when linearly building a component
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike committed Nov 16, 2022
1 parent c04b14d commit 7bb1875
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private LinearComponents() {
final int size = builder.children.size();
if (size == 0) {
throw nothingComponentLike();
} else if (size == 1) {
} else if (size == 1 && !builder.hasStyle()) {
return builder.children.get(0);
} else {
return builder.build();
Expand Down

0 comments on commit 7bb1875

Please sign in to comment.