@syncfusion/ej2-inputs 20.4.48 → 20.4.51
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 +2 -0
- package/GitLeaksReport.json +42 -0
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +8 -3
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +8 -3
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/package.json +9 -9
- package/src/input/input.d.ts +1 -1
- package/src/input/input.js +2 -2
- package/src/uploader/uploader.js +6 -1
|
@@ -424,8 +424,8 @@ var Input;
|
|
|
424
424
|
* @param {any} element - Input element which is need to add.
|
|
425
425
|
* @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
|
|
426
426
|
*/
|
|
427
|
-
function calculateWidth(element, container) {
|
|
428
|
-
let elementWidth = element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'));
|
|
427
|
+
function calculateWidth(element, container, moduleName) {
|
|
428
|
+
let elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'));
|
|
429
429
|
if (!isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
|
|
430
430
|
if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {
|
|
431
431
|
container.getElementsByClassName('e-float-text-content')[0].classList.remove('e-float-text-overflow');
|
|
@@ -7903,7 +7903,12 @@ let Uploader = class Uploader extends Component {
|
|
|
7903
7903
|
const inputElement = this.createElement('input', { attrs: { type: 'file' } });
|
|
7904
7904
|
let index = 0;
|
|
7905
7905
|
for (index; index < this.element.attributes.length; index++) {
|
|
7906
|
-
|
|
7906
|
+
if (this.element.attributes[index].nodeName !== 'id') {
|
|
7907
|
+
inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
|
|
7908
|
+
}
|
|
7909
|
+
else if (this.element.attributes[index].nodeName === 'id') {
|
|
7910
|
+
inputElement.setAttribute(this.element.attributes[index].nodeName, getUniqueID('uploader'));
|
|
7911
|
+
}
|
|
7907
7912
|
inputElement.innerHTML = this.element.innerHTML;
|
|
7908
7913
|
}
|
|
7909
7914
|
if (!inputElement.hasAttribute('name')) {
|