@syncfusion/ej2-dropdowns 24.2.5 → 24.2.6
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/CHANGELOG.md +16 -0
- 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 +24 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +24 -11
- 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 +6 -6
- package/src/drop-down-list/drop-down-list.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.js +4 -4
- package/src/list-box/list-box.js +0 -1
- package/src/mention/mention.js +20 -6
|
@@ -2624,15 +2624,15 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2624
2624
|
focusOutAction(e) {
|
|
2625
2625
|
this.isInteracted = false;
|
|
2626
2626
|
this.focusOut(e);
|
|
2627
|
-
this.onFocusOut();
|
|
2627
|
+
this.onFocusOut(e);
|
|
2628
2628
|
}
|
|
2629
|
-
onFocusOut() {
|
|
2629
|
+
onFocusOut(e) {
|
|
2630
2630
|
if (!this.enabled) {
|
|
2631
2631
|
return;
|
|
2632
2632
|
}
|
|
2633
2633
|
if (this.isSelected) {
|
|
2634
2634
|
this.isSelectCustom = false;
|
|
2635
|
-
this.onChangeEvent(
|
|
2635
|
+
this.onChangeEvent(e);
|
|
2636
2636
|
}
|
|
2637
2637
|
this.floatLabelChange();
|
|
2638
2638
|
this.dispatchEvent(this.hiddenElement, 'change');
|
|
@@ -3345,7 +3345,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3345
3345
|
this.hidePopup(e);
|
|
3346
3346
|
this.isInteracted = false;
|
|
3347
3347
|
if (!isActive) {
|
|
3348
|
-
this.onFocusOut();
|
|
3348
|
+
this.onFocusOut(e);
|
|
3349
3349
|
this.inputWrapper.container.classList.remove(dropDownListClasses.inputFocus);
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
@@ -17251,7 +17251,6 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
17251
17251
|
if (tListBox.mainList.childElementCount !== tListBox.jsonData.length) {
|
|
17252
17252
|
tListBox.mainList = tListBox.ulElement;
|
|
17253
17253
|
}
|
|
17254
|
-
fListBox.updateMainList();
|
|
17255
17254
|
const tJsonData = [].slice.call(tListBox.jsonData);
|
|
17256
17255
|
tSortData = [].slice.call(tListBox.sortedData);
|
|
17257
17256
|
this.selectNextList(elems, dataLiIdx, dataIdx, fListBox);
|
|
@@ -19022,6 +19021,20 @@ let Mention = class Mention extends DropDownBase {
|
|
|
19022
19021
|
range.collapse(false);
|
|
19023
19022
|
rect = range.getBoundingClientRect().top === 0 ? range.startContainer.getClientRects()[0] : range.getBoundingClientRect();
|
|
19024
19023
|
}
|
|
19024
|
+
let rectTop = rect.top;
|
|
19025
|
+
let rectLeft = rect.left;
|
|
19026
|
+
const iframes = document.querySelectorAll('iframe');
|
|
19027
|
+
if (iframes.length > 0) {
|
|
19028
|
+
for (let i = 0; i < iframes.length; i++) {
|
|
19029
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
19030
|
+
const iframe = iframes[i];
|
|
19031
|
+
if (iframe.contentDocument.contains(element)) {
|
|
19032
|
+
const iframeRect = iframe.getBoundingClientRect();
|
|
19033
|
+
rectTop += iframeRect.top;
|
|
19034
|
+
rectLeft += iframeRect.left;
|
|
19035
|
+
}
|
|
19036
|
+
}
|
|
19037
|
+
}
|
|
19025
19038
|
const doc = document.documentElement;
|
|
19026
19039
|
const windowLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
19027
19040
|
const windowTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
@@ -19043,23 +19056,23 @@ let Mention = class Mention extends DropDownBase {
|
|
|
19043
19056
|
}
|
|
19044
19057
|
if (!this.isContentEditable(this.inputElement)) {
|
|
19045
19058
|
coordinates = {
|
|
19046
|
-
top:
|
|
19059
|
+
top: rectTop + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
19047
19060
|
parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
|
|
19048
|
-
left:
|
|
19061
|
+
left: rectLeft + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
|
|
19049
19062
|
};
|
|
19050
19063
|
document.body.removeChild(div);
|
|
19051
19064
|
}
|
|
19052
19065
|
else {
|
|
19053
19066
|
if (this.collision && this.collision.length > 0 && this.collision.indexOf('right') > -1 && this.collision.indexOf('bottom') === -1) {
|
|
19054
19067
|
coordinates = {
|
|
19055
|
-
top:
|
|
19056
|
-
left:
|
|
19068
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
|
|
19069
|
+
left: rectLeft + windowLeft + width
|
|
19057
19070
|
};
|
|
19058
19071
|
}
|
|
19059
19072
|
else {
|
|
19060
19073
|
coordinates = {
|
|
19061
|
-
top:
|
|
19062
|
-
left:
|
|
19074
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
19075
|
+
left: rectLeft + windowLeft + width
|
|
19063
19076
|
};
|
|
19064
19077
|
}
|
|
19065
19078
|
}
|