Skip to content

Commit 854c3cb

Browse files
authored
Fix regression with Objective-C api whitespace formatting (#670)
Resolves: rdar://109681482
1 parent 8d7558b commit 854c3cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/DocumentationTopic/PrimaryContent/DeclarationSource.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export default {
196196
async mounted() {
197197
if (this.language === Language.objectiveC.key.api) {
198198
await this.$nextTick();
199-
indentDeclaration(this.$refs.code, this.language);
199+
indentDeclaration(this.$refs.code.$el, this.language);
200200
}
201201
if (hasMultipleLines(this.$refs.declarationGroup)) this.hasMultipleLines = true;
202202
},

tests/unit/components/DocumentationTopic/PrimaryContent/DeclarationSource.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('DeclarationSource', () => {
109109
await flushPromises();
110110
expect(indentDeclaration).toHaveBeenCalledTimes(1);
111111
expect(indentDeclaration)
112-
.toHaveBeenCalledWith(wrapper.find({ ref: 'code' }).vm, Language.objectiveC.key.api);
112+
.toHaveBeenCalledWith(wrapper.find({ ref: 'code' }).vm.$el, Language.objectiveC.key.api);
113113
expect(callStack).toEqual(['indentDeclaration', 'hasMultipleLines']);
114114
});
115115
});

0 commit comments

Comments
 (0)