We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b4a95 commit 0429506Copy full SHA for 0429506
ui/lib/open-api-explorer/addon/components/swagger-ui.js
@@ -165,9 +165,13 @@ export default class SwaggerUiComponent extends Component {
165
}
166
167
updateDisabledFields() {
168
- document.querySelectorAll('.parameters :disabled').forEach((el) => {
169
- el.removeAttribute('disabled');
170
- el.setAttribute('readonly', true);
+ document.querySelectorAll('.parameters').forEach((el) => {
+ if (!el.disabled) {
+ el.removeAttribute('readonly');
171
+ } else {
172
+ el.removeAttribute('disabled');
173
+ el.setAttribute('readonly', true);
174
+ }
175
});
176
177
0 commit comments