diff --git a/src/components/api-request.js b/src/components/api-request.js
index e7ea9598..2f3a6153 100644
--- a/src/components/api-request.js
+++ b/src/components/api-request.js
@@ -95,13 +95,17 @@ export default class ApiRequest extends LitElement {
}
updated(changedProperties) {
+ // When the operation is changed, reset the display view properties
+ if (changedProperties.get('elementId')) {
+ this.activeResponseTab = 'curl';
+ }
// In focused mode after rendering the request component, update the text-areas(which contains examples) using the original values from hidden textareas.
// This is done coz, user may update the dom by editing the textarea's and once the DOM is updated externally change detection wont happen, therefore update the values manually
if (this.renderStyle !== 'focused') {
return;
}
- // dont update example as only tabs is switched
+ // don't update example as only tabs is switched
if (changedProperties.size === 1 && changedProperties.has('activeSchemaTab')) {
return;
}
@@ -624,7 +628,7 @@ export default class ApiRequest extends LitElement {
}}">