Skip to content

Commit 0054442

Browse files
committed
layout.Flexbox: applyChildAttributes() => opt out for functional cmps #7071
1 parent 771ae79 commit 0054442

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/layout/Flexbox.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ class Flexbox extends Base {
146146
* @param {Number} index
147147
*/
148148
applyChildAttributes(item, index) {
149+
if (!item.wrapperStyle) return;
150+
149151
let style = item.wrapperStyle,
150152
flex = style.flex || item.flex || (this.align === 'stretch' ? 1 : '0 1 auto');
151153

0 commit comments

Comments
 (0)