fix(datepicker): remove calendar id in calendar overlay frame
This commit is contained in:
parent
9f9d49ebcf
commit
781d74d31a
2 changed files with 2 additions and 3 deletions
|
|
@ -151,7 +151,7 @@ export class LionInputDatepicker extends ScopedElementsMixin(OverlayMixin(LionIn
|
||||||
}
|
}
|
||||||
|
|
||||||
get _calendarNode() {
|
get _calendarNode() {
|
||||||
return this._overlayCtrl.contentNode.querySelector('#calendar');
|
return this._overlayCtrl.contentNode.querySelector('[slot="content"]');
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
@ -243,7 +243,6 @@ export class LionInputDatepicker extends ScopedElementsMixin(OverlayMixin(LionIn
|
||||||
return html`
|
return html`
|
||||||
<lion-calendar
|
<lion-calendar
|
||||||
slot="content"
|
slot="content"
|
||||||
id="calendar"
|
|
||||||
.selectedDate="${this.constructor.__getSyncDownValue(this.modelValue)}"
|
.selectedDate="${this.constructor.__getSyncDownValue(this.modelValue)}"
|
||||||
.minDate="${this.__calendarMinDate}"
|
.minDate="${this.__calendarMinDate}"
|
||||||
.maxDate="${this.__calendarMaxDate}"
|
.maxDate="${this.__calendarMaxDate}"
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ export class DatepickerInputObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
get calendarEl() {
|
get calendarEl() {
|
||||||
return this.overlayEl && this.overlayEl.querySelector('#calendar');
|
return this.el && this.el._calendarNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue