@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.
@@ -438,7 +438,7 @@ let DropDownBase = class DropDownBase extends Component {
438
438
  else {
439
439
  const l10nLocale = { noRecordsTemplate: 'No records found', actionFailureTemplate: 'Request failed' };
440
440
  const componentLocale = new L10n(this.getLocaleName(), {}, this.locale);
441
- if (componentLocale.getConstant('actionFailureTemplate') !== '') {
441
+ if (componentLocale.getConstant('actionFailureTemplate') !== '' || componentLocale.getConstant('noRecordsTemplate') !== '') {
442
442
  this.l10n = componentLocale;
443
443
  }
444
444
  else {
@@ -1961,6 +1961,7 @@ let DropDownList = class DropDownList extends DropDownBase {
1961
1961
  EventHandler.add(this.inputWrapper.container, 'mousedown', this.dropDownClick, this);
1962
1962
  EventHandler.add(this.inputWrapper.container, 'focus', this.focusIn, this);
1963
1963
  EventHandler.add(this.inputWrapper.container, 'keypress', this.onSearch, this);
1964
+ EventHandler.add(window, 'resize', this.windowResize, this);
1964
1965
  this.bindCommonEvent();
1965
1966
  }
1966
1967
  bindCommonEvent() {
@@ -1981,6 +1982,11 @@ let DropDownList = class DropDownList extends DropDownBase {
1981
1982
  }
1982
1983
  this.bindClearEvent();
1983
1984
  }
1985
+ windowResize() {
1986
+ if (this.isPopupOpen) {
1987
+ this.popupObj.refreshPosition(this.inputWrapper.container);
1988
+ }
1989
+ }
1984
1990
  bindClearEvent() {
1985
1991
  if (this.showClearButton) {
1986
1992
  EventHandler.add(this.inputWrapper.clearButton, 'mousedown', this.resetHandler, this);
@@ -2306,6 +2312,7 @@ let DropDownList = class DropDownList extends DropDownBase {
2306
2312
  EventHandler.remove(this.inputWrapper.container, 'mousedown', this.dropDownClick);
2307
2313
  EventHandler.remove(this.inputWrapper.container, 'keypress', this.onSearch);
2308
2314
  EventHandler.remove(this.inputWrapper.container, 'focus', this.focusIn);
2315
+ EventHandler.remove(window, 'resize', this.windowResize);
2309
2316
  }
2310
2317
  this.unBindCommonEvent();
2311
2318
  }
@@ -4270,6 +4277,9 @@ let DropDownList = class DropDownList extends DropDownBase {
4270
4277
  this.previousSelectedLI = null;
4271
4278
  this.valueTempElement = null;
4272
4279
  this.actionData.ulElement = null;
4280
+ if (this.inputElement && !isNullOrUndefined(this.inputElement.onchange)) {
4281
+ this.inputElement.onchange = null;
4282
+ }
4273
4283
  super.destroy();
4274
4284
  }
4275
4285
  /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
@@ -7618,6 +7628,7 @@ let ComboBox = class ComboBox extends DropDownList {
7618
7628
  EventHandler.add(this.inputElement, 'keyup', this.onFilterUp, this);
7619
7629
  EventHandler.add(this.inputElement, 'keydown', this.onFilterDown, this);
7620
7630
  EventHandler.add(this.inputElement, 'paste', this.pasteHandler, this);
7631
+ EventHandler.add(window, 'resize', this.windowResize, this);
7621
7632
  }
7622
7633
  this.bindCommonEvent();
7623
7634
  }
@@ -7970,6 +7981,7 @@ let ComboBox = class ComboBox extends DropDownList {
7970
7981
  EventHandler.remove(this.inputElement, 'keyup', this.onFilterUp);
7971
7982
  EventHandler.remove(this.inputElement, 'keydown', this.onFilterDown);
7972
7983
  EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);
7984
+ EventHandler.remove(window, 'resize', this.windowResize);
7973
7985
  }
7974
7986
  }
7975
7987
  this.unBindCommonEvent();