@syncfusion/ej2-dropdowns 35.2.12 → 35.2.15
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.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +14 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +16 -2
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/drop-down-list/drop-down-list.js +16 -2
|
@@ -6713,6 +6713,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6713
6713
|
this.fixedHeaderElement = null;
|
|
6714
6714
|
}
|
|
6715
6715
|
if (!eventArgs.cancel) {
|
|
6716
|
+
this.destroyPopupPositionObserver();
|
|
6716
6717
|
if (this.isPopupOpen && this.allowFiltering && this.isDeviceFullScreen && Browser.isDevice && Browser.isIos) {
|
|
6717
6718
|
document.documentElement.scrollTo({
|
|
6718
6719
|
top: this.iOSscrollPosition.y,
|
|
@@ -6820,7 +6821,12 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6820
6821
|
if (isNullOrUndefined(observerTarget)) {
|
|
6821
6822
|
return;
|
|
6822
6823
|
}
|
|
6823
|
-
this.popupPositionObserver = new MutationObserver(() => {
|
|
6824
|
+
this.popupPositionObserver = new MutationObserver((mutations) => {
|
|
6825
|
+
// Ignore the component's own changes (focus / icon-animation classes) to avoid needless refresh cycles.
|
|
6826
|
+
const external = mutations.some((m) => isNullOrUndefined(this.inputWrapper) || !this.inputWrapper.container.contains(m.target));
|
|
6827
|
+
if (!external) {
|
|
6828
|
+
return;
|
|
6829
|
+
}
|
|
6824
6830
|
clearTimeout(this.popupPositionRefreshTimer);
|
|
6825
6831
|
this.popupPositionRefreshTimer = setTimeout(() => {
|
|
6826
6832
|
if (!isNullOrUndefined(this.popupObj) &&
|
|
@@ -6835,6 +6841,13 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
6835
6841
|
attributes: true,
|
|
6836
6842
|
attributeFilter: ['style', 'class']
|
|
6837
6843
|
});
|
|
6844
|
+
// Content added or removed before the input (for example a delayed validation message) is a direct child change
|
|
6845
|
+
// of one of its ancestors, so watch only those child lists (not their subtrees) up to, but excluding, the body.
|
|
6846
|
+
let ancestor = observerTarget.parentElement;
|
|
6847
|
+
while (ancestor && ancestor !== document.body && ancestor !== document.documentElement) {
|
|
6848
|
+
this.popupPositionObserver.observe(ancestor, { childList: true });
|
|
6849
|
+
ancestor = ancestor.parentElement;
|
|
6850
|
+
}
|
|
6838
6851
|
}
|
|
6839
6852
|
destroyPopupPositionObserver() {
|
|
6840
6853
|
if (this.popupPositionRefreshTimer) {
|
|
@@ -7748,7 +7761,6 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
7748
7761
|
*/
|
|
7749
7762
|
hidePopup(e) {
|
|
7750
7763
|
/* eslint-enable valid-jsdoc, jsdoc/require-param */
|
|
7751
|
-
this.destroyPopupPositionObserver();
|
|
7752
7764
|
if (this.isEscapeKey && this.getModuleName() === 'dropdownlist') {
|
|
7753
7765
|
if (!isNullOrUndefined(this.inputElement)) {
|
|
7754
7766
|
Input.setValue(this.text, this.inputElement, this.floatLabelType, this.showClearButton);
|