@brightspace-ui/core 3.344.9 → 3.344.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import { css, html, LitElement } from 'lit';
2
- import { getFlag } from '../../helpers/flags.js';
3
2
 
4
3
  /**
5
4
  * A button container component for button toggles.
@@ -53,18 +52,6 @@ class ButtonToggle extends LitElement {
53
52
  `;
54
53
  }
55
54
 
56
- // remove with "button-toggle-no-change-event-on-prop-update" flag
57
- updated(changedProperties) {
58
- super.updated(changedProperties);
59
-
60
- if (changedProperties.get('pressed') === undefined) return;
61
-
62
- if (!getFlag('button-toggle-no-change-event-on-prop-update', true)) {
63
- /** Dispatched when the pressed state changes */
64
- this.dispatchEvent(new CustomEvent('d2l-button-toggle-change'));
65
- }
66
- }
67
-
68
55
  focus() {
69
56
  if (!this.hasUpdated) {
70
57
  this.#focusOnFirstRender = true;
@@ -106,10 +93,9 @@ class ButtonToggle extends LitElement {
106
93
  this.pressed = newPressed;
107
94
  await this.updateComplete;
108
95
  this.focus();
109
- if (getFlag('button-toggle-no-change-event-on-prop-update', true)) {
110
- /** Dispatched when the pressed state changes */
111
- this.dispatchEvent(new CustomEvent('d2l-button-toggle-change'));
112
- }
96
+
97
+ /** Dispatched when the pressed state changes */
98
+ this.dispatchEvent(new CustomEvent('d2l-button-toggle-change'));
113
99
  }
114
100
 
115
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.344.9",
3
+ "version": "3.344.10",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",