Skip to content

Commit f41ab80

Browse files
committed
revert change of omitting empty values from modifiers due to UI layout issues
1 parent e3c3a29 commit f41ab80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commons/modifiers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,10 @@ export function generateModifiersStyle(options = {
364364
style.positionStyle = extractPositionStyle(boundProps);
365365
}
366366

367+
return style;
367368
// clean empty objects and undefined
368-
return _.omitBy(style, value => _.isUndefined(value) || (_.isPlainObject(value) && _.isEmpty(value)));
369+
// (!) This change is currently breaking UI layout for some reason - worth investigating
370+
// return _.omitBy(style, value => _.isUndefined(value) || (_.isPlainObject(value) && _.isEmpty(value)));
369371
}
370372

371373
export function getAlteredModifiersOptions(currentProps: any, nextProps: any) {

0 commit comments

Comments
 (0)