Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit ee5d93a

Browse files
authored
fix(private): remove fallback from flex-direction auto-prefixer (#1408)
When we clear styles on the server, we emit an empty value in order to flush the cache. However, all values still end up passing through the auto-prefixer, which then converted this value to the default value of row. However, other components own the default 'row' value fallback, and so this only serves to add another layer of logic that gets in the way. Now, we remove it so that the overlying mechanisms can work as intended in both browser and server. Fixes #1394
1 parent 14b8038 commit ee5d93a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/libs/flex-layout/_private-utils/auto-prefixer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
export function applyCssPrefixes(target: {[key: string]: any | null}) {
2121
for (let key in target) {
22-
let value = target[key] || '';
22+
let value = target[key] ?? '';
2323

2424
switch (key) {
2525
case 'display':
@@ -52,7 +52,6 @@ export function applyCssPrefixes(target: {[key: string]: any | null}) {
5252
break;
5353

5454
case 'flex-direction':
55-
value = value || 'row';
5655
target['-webkit-flex-direction'] = value;
5756
target['flex-direction'] = value;
5857
break;

0 commit comments

Comments
 (0)