Skip to content

Commit 7339b8e

Browse files
committed
Update parent layout-gap when applying order directive
1 parent bcaad02 commit 7339b8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

projects/libs/flex-layout/flex/flex-order/flex-order.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ export class FlexOrderDirective extends BaseDirective2 implements OnChanges {
6464
}
6565

6666
protected override styleCache = flexOrderCache;
67+
68+
override updateWithValue(input: string) {
69+
super.updateWithValue(input);
70+
71+
if (this.parentElement) {
72+
this.marshal.triggerUpdate(this.parentElement, 'layout-gap');
73+
}
74+
}
6775
}
6876

6977
const flexOrderCache: Map<string, StyleDefinition> = new Map();

0 commit comments

Comments
 (0)