Skip to content

Commit 84fbd04

Browse files
gkelloggdavidlehn
authored andcommitted
Don't extend frame support in expansion to @default.
1 parent 70da3c5 commit 84fbd04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/expand.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ api.expand = ({
6969
return null;
7070
}
7171

72+
// disable framing if activeProperty is @default
73+
if(activeProperty === '@default') {
74+
options = Object.assign({}, options, {isFrame: false});
75+
}
76+
7277
if(!_isArray(element) && !_isObject(element)) {
7378
// drop free-floating scalars that are not in lists unless custom mapped
7479
if(!insideList && (activeProperty === null ||

0 commit comments

Comments
 (0)