@syncfusion/ej2-dropdowns 22.1.36 → 22.1.37

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.
@@ -465,7 +465,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
465
465
  else {
466
466
  var l10nLocale = { noRecordsTemplate: 'No records found', actionFailureTemplate: 'Request failed' };
467
467
  var componentLocale = new L10n(this.getLocaleName(), {}, this.locale);
468
- if (componentLocale.getConstant('actionFailureTemplate') !== '') {
468
+ if (componentLocale.getConstant('actionFailureTemplate') !== '' || componentLocale.getConstant('noRecordsTemplate') !== '') {
469
469
  this.l10n = componentLocale;
470
470
  }
471
471
  else {
@@ -2012,6 +2012,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
2012
2012
  EventHandler.add(this.inputWrapper.container, 'mousedown', this.dropDownClick, this);
2013
2013
  EventHandler.add(this.inputWrapper.container, 'focus', this.focusIn, this);
2014
2014
  EventHandler.add(this.inputWrapper.container, 'keypress', this.onSearch, this);
2015
+ EventHandler.add(window, 'resize', this.windowResize, this);
2015
2016
  this.bindCommonEvent();
2016
2017
  };
2017
2018
  DropDownList.prototype.bindCommonEvent = function () {
@@ -2032,6 +2033,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
2032
2033
  }
2033
2034
  this.bindClearEvent();
2034
2035
  };
2036
+ DropDownList.prototype.windowResize = function () {
2037
+ if (this.isPopupOpen) {
2038
+ this.popupObj.refreshPosition(this.inputWrapper.container);
2039
+ }
2040
+ };
2035
2041
  DropDownList.prototype.bindClearEvent = function () {
2036
2042
  if (this.showClearButton) {
2037
2043
  EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.resetHandler, this);
@@ -2357,6 +2363,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
2357
2363
  EventHandler.remove(this.inputWrapper.container, 'mousedown', this.dropDownClick);
2358
2364
  EventHandler.remove(this.inputWrapper.container, 'keypress', this.onSearch);
2359
2365
  EventHandler.remove(this.inputWrapper.container, 'focus', this.focusIn);
2366
+ EventHandler.remove(window, 'resize', this.windowResize);
2360
2367
  }
2361
2368
  this.unBindCommonEvent();
2362
2369
  };
@@ -4341,6 +4348,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4341
4348
  this.previousSelectedLI = null;
4342
4349
  this.valueTempElement = null;
4343
4350
  this.actionData.ulElement = null;
4351
+ if (this.inputElement && !isNullOrUndefined(this.inputElement.onchange)) {
4352
+ this.inputElement.onchange = null;
4353
+ }
4344
4354
  _super.prototype.destroy.call(this);
4345
4355
  };
4346
4356
  /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
@@ -7741,6 +7751,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
7741
7751
  EventHandler.add(this.inputElement, 'keyup', this.onFilterUp, this);
7742
7752
  EventHandler.add(this.inputElement, 'keydown', this.onFilterDown, this);
7743
7753
  EventHandler.add(this.inputElement, 'paste', this.pasteHandler, this);
7754
+ EventHandler.add(window, 'resize', this.windowResize, this);
7744
7755
  }
7745
7756
  this.bindCommonEvent();
7746
7757
  };
@@ -8095,6 +8106,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
8095
8106
  EventHandler.remove(this.inputElement, 'keyup', this.onFilterUp);
8096
8107
  EventHandler.remove(this.inputElement, 'keydown', this.onFilterDown);
8097
8108
  EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);
8109
+ EventHandler.remove(window, 'resize', this.windowResize);
8098
8110
  }
8099
8111
  }
8100
8112
  this.unBindCommonEvent();