Skip to content

Commit

Permalink
fix(action-button): allow change events to bubble and pierce shadowdom
Browse files Browse the repository at this point in the history
fix: remove unused code

fix(action-button): allow change events to bubble and pierce shadowdom
  • Loading branch information
nickschaap committed Sep 1, 2023
1 parent 461805c commit e7ef339
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/action-button/src/ActionButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export class ActionButton extends SizedMixin(ButtonBase, {
const applyDefault = this.dispatchEvent(
new Event('change', {
cancelable: true,
bubbles: true,
composed: true,
})
);
if (!applyDefault) {
Expand Down
1 change: 1 addition & 0 deletions packages/action-group/src/ActionGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ export class ActionGroup extends SizedMixin(SpectrumElement, {

private manageChildren(changes?: PropertyValues): void {
this.buttons.forEach((button) => {
button.toggles = false;
if (this.quiet || changes?.get('quiet')) {
button.quiet = this.quiet;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5573,10 +5573,10 @@
resolved "https://registry.yarnpkg.com/@spectrum-css/tag/-/tag-6.0.1.tgz#b35d24085983b14768a3ad76b03ec281fb49eadf"
integrity sha512-Fsbfa3VufWvO4zWFxoTdxgXoXFa5ooSZS7sTojX72jTLsnt8JSfZOJUJDehuWcuJCOweRCDlwVlSrZKvoZOUkQ==

"@spectrum-css/taggroup@^4.0.0-beta.0":
version "4.0.0-beta.0"
resolved "https://registry.yarnpkg.com/@spectrum-css/taggroup/-/taggroup-4.0.0-beta.0.tgz#13ad9df866db267486ef44d3e9f2a21e5b4ada88"
integrity sha512-Z19nIL5FyLDftRIkgL/TA5vJy7Zas086eFKe9UMgFw2J9CmMCINOBjuDLewFGnVYntDIQ0nW+3k+IW5M3+kVAg==
"@spectrum-css/taggroup@^4.0.0":
version "4.0.3"
resolved "https://registry.yarnpkg.com/@spectrum-css/taggroup/-/taggroup-4.0.3.tgz#d9a868bbb09eccc2403627f118c7001136a0cbce"
integrity sha512-YEVMtm+QzehHFDt/bQXJP3/XLV+4xAVKX4FVgJq0Cf7AWwNWEhInWJOpQGN0GlyemdqaNmi0IQSapNGtxdFWRQ==

"@spectrum-css/textfield@^6.0.11":
version "6.0.11"
Expand Down

0 comments on commit e7ef339

Please sign in to comment.