@brightspace-ui/core 2.167.1 → 2.167.2
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.
@@ -163,8 +163,7 @@ class InputDateRange extends FocusMixin(SkeletonMixin(FormElementMixin(RtlMixin(
|
|
163
163
|
if (!this.label) {
|
164
164
|
console.warn('d2l-input-date-range component requires label text');
|
165
165
|
}
|
166
|
-
|
167
|
-
this.shadowRoot.querySelector('d2l-input-date-time-range-to').setParentNode(this.parentNode);
|
166
|
+
this.shadowRoot.querySelector('d2l-input-date-time-range-to').setParentNode(this);
|
168
167
|
}
|
169
168
|
|
170
169
|
render() {
|
@@ -2,6 +2,7 @@ import './input-text.js';
|
|
2
2
|
import { css, html, LitElement } from 'lit';
|
3
3
|
import { bodySmallStyles } from '../typography/styles.js';
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
5
|
+
import { getOffsetParent } from '../../helpers/dom.js';
|
5
6
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
6
7
|
import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
7
8
|
import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
|
@@ -157,7 +158,7 @@ class InputDateTimeRangeTo extends SkeletonMixin(LocalizeCoreElement(LitElement)
|
|
157
158
|
}
|
158
159
|
|
159
160
|
setParentNode(node) {
|
160
|
-
this._parentNode = node;
|
161
|
+
this._parentNode = node.parentNode instanceof ShadowRoot ? getOffsetParent(node) : node.parentNode;
|
161
162
|
}
|
162
163
|
|
163
164
|
_disconnectObservers() {
|
@@ -210,7 +210,7 @@ class InputDateTimeRange extends FocusMixin(SkeletonMixin(FormElementMixin(RtlMi
|
|
210
210
|
console.warn('d2l-input-date-time-range component requires label text');
|
211
211
|
}
|
212
212
|
|
213
|
-
this.shadowRoot.querySelector('d2l-input-date-time-range-to').setParentNode(this
|
213
|
+
this.shadowRoot.querySelector('d2l-input-date-time-range-to').setParentNode(this);
|
214
214
|
}
|
215
215
|
|
216
216
|
render() {
|
@@ -208,7 +208,7 @@ class InputTimeRange extends FocusMixin(SkeletonMixin(FormElementMixin(RtlMixin(
|
|
208
208
|
}
|
209
209
|
this._initialValues = false;
|
210
210
|
|
211
|
-
this.shadowRoot.querySelector('d2l-input-date-time-range-to').setParentNode(this
|
211
|
+
this.shadowRoot.querySelector('d2l-input-date-time-range-to').setParentNode(this);
|
212
212
|
}
|
213
213
|
|
214
214
|
render() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.167.
|
3
|
+
"version": "2.167.2",
|
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",
|