Skip to content

Commit

Permalink
Fix select update value changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Jun 8, 2024
1 parent 8113a40 commit 1726613
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This package follows standard semvar, `<major>.<minor>.<build>`. No breaking cha
* Prevent making requests when required path parameters are not specified.
* Automatically retry fetching the spec if it doesn't work for any reason.
* Fix array description display preference to be first--The Array description, and then only second--The array item schema description, so that the "more specific" description wins, even though the "items" description is more deeply nested. This aligns to the expected behavior of preference in the json schema.
* Fix selecte drop down menu update trigger.

## 2.1
* Add `x-locale` vendor extension to specify the locale of the spec.
Expand Down Expand Up @@ -111,7 +112,7 @@ This package follows standard semvar, `<major>.<minor>.<build>`. No breaking cha
* [Bug] - Fix `explorer-location` tracking for updates triggered outside of component

## 0.7 ##
* Introduce `setAuthenticationConfiguration` to set any all configuration related to token management, including clientIds and explicit tokens.
* Introduce `setAuthenticationConfiguration` to set any/all configuration related to token management, including clientIds and explicit tokens.
* Display component titles in bold next to description
* Enable component scrolling.

Expand Down
2 changes: 1 addition & 1 deletion src/components/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default class ApiRequest extends LitElement {
data-ptype="${paramLocation}"
data-pname="${param.name}"
.value="${this.fillRequestWithDefault === 'true' ? defaultVal : ''}"
@change="${(e) => { this.storedParamValues[param.name] = e.detail.value; this.computeCurlSyntax(); }}">
@change="${(e) => { this.storedParamValues[param.name] = e; this.computeCurlSyntax(); }}">
${paramSchema.allowedValues.map((allowedValue) => html`
<option value="${allowedValue}" ?selected = '${allowedValue === this.storedParamValues[param.name]}'>
${allowedValue === null ? '-' : allowedValue}
Expand Down

0 comments on commit 1726613

Please sign in to comment.