@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.
@@ -426,8 +426,8 @@ var Input;
426
426
  * @param {any} element - Input element which is need to add.
427
427
  * @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
428
428
  */
429
- function calculateWidth(element, container) {
430
- var elementWidth = element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'));
429
+ function calculateWidth(element, container, moduleName) {
430
+ var elementWidth = moduleName === 'multiselect' ? element : element.clientWidth - parseInt(getComputedStyle(element, null).getPropertyValue('padding-left'));
431
431
  if (!isNullOrUndefined(container.getElementsByClassName('e-float-text-content')[0])) {
432
432
  if (container.getElementsByClassName('e-float-text-content')[0].classList.contains('e-float-text-overflow')) {
433
433
  container.getElementsByClassName('e-float-text-content')[0].classList.remove('e-float-text-overflow');
@@ -8073,7 +8073,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8073
8073
  var inputElement = this.createElement('input', { attrs: { type: 'file' } });
8074
8074
  var index = 0;
8075
8075
  for (index; index < this.element.attributes.length; index++) {
8076
- inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
8076
+ if (this.element.attributes[index].nodeName !== 'id') {
8077
+ inputElement.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
8078
+ }
8079
+ else if (this.element.attributes[index].nodeName === 'id') {
8080
+ inputElement.setAttribute(this.element.attributes[index].nodeName, getUniqueID('uploader'));
8081
+ }
8077
8082
  inputElement.innerHTML = this.element.innerHTML;
8078
8083
  }
8079
8084
  if (!inputElement.hasAttribute('name')) {