@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.
@@ -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
- inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
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')) {