@brightspace-ui/core 3.220.3 → 3.221.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.
|
@@ -170,6 +170,18 @@ class InputTextArea extends InputInlineHelpMixin(FocusMixin(LabelledMixin(FormEl
|
|
|
170
170
|
this._textareaId = getUniqueId();
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/** @ignore */
|
|
174
|
+
get selectionStart() {
|
|
175
|
+
return this.textarea?.selectionStart || 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @ignore */
|
|
179
|
+
set selectionStart(value) {
|
|
180
|
+
if (this.textarea !== null) {
|
|
181
|
+
this.textarea.selectionStart = value;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
173
185
|
static get focusElementSelector() {
|
|
174
186
|
return 'textarea';
|
|
175
187
|
}
|
|
@@ -177,7 +189,7 @@ class InputTextArea extends InputInlineHelpMixin(FocusMixin(LabelledMixin(FormEl
|
|
|
177
189
|
/** @ignore */
|
|
178
190
|
get textarea() {
|
|
179
191
|
// temporary until consumers are updated
|
|
180
|
-
return this.shadowRoot
|
|
192
|
+
return this.shadowRoot?.querySelector('textarea');
|
|
181
193
|
}
|
|
182
194
|
|
|
183
195
|
/** @ignore */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.221.0",
|
|
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",
|