@brightspace-ui/core 1.188.1 → 1.189.0

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.
@@ -84,7 +84,7 @@ export const LabelledMixin = superclass => class extends superclass {
84
84
  */
85
85
  labelledBy: { type: String, reflect: true, attribute: 'labelled-by' },
86
86
  /**
87
- * Explicitly defined label used to provide context for accessibility
87
+ * REQUIRED: Explicitly defined label for the element
88
88
  * @type {string}
89
89
  */
90
90
  label: { type: String }
@@ -93,8 +93,8 @@ export const LabelledMixin = superclass => class extends superclass {
93
93
 
94
94
  constructor() {
95
95
  super();
96
+ this.labelRequired = true;
96
97
  this._labelElem = null;
97
- this._labelRequired = true;
98
98
  this._missingLabelErrorHasBeenThrown = false;
99
99
  }
100
100
 
@@ -135,7 +135,7 @@ export const LabelledMixin = superclass => class extends superclass {
135
135
  }
136
136
 
137
137
  _throwError(err) {
138
- if (!this._labelRequired || this._missingLabelErrorHasBeenThrown) return;
138
+ if (!this.labelRequired || this._missingLabelErrorHasBeenThrown) return;
139
139
  this._missingLabelErrorHasBeenThrown = true;
140
140
  setTimeout(() => { throw err; }); // we don't want to prevent rendering
141
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.188.1",
3
+ "version": "1.189.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {