@progress/kendo-react-dropdowns 5.18.0-dev.202309111539 → 5.18.0-dev.202309111654

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.
@@ -224,6 +224,8 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
224
224
  }
225
225
  };
226
226
  _this.handleKeyDown = function (event) {
227
+ // The following added here to prevent the propagation of the keyDown event when the filter prop is set to true
228
+ event && event.stopPropagation && event.stopPropagation();
227
229
  var _a = _this.props, _b = _a.data, data = _b === void 0 ? [] : _b, filterable = _a.filterable, disabled = _a.disabled, defaultItem = _a.defaultItem, _c = _a.leftRightKeysNavigation, leftRightKeysNavigation = _c === void 0 ? true : _c, _d = _a.virtual, virtual = _d === void 0 ? { skip: 0, total: 0, pageSize: 0 } : _d, dataItemKey = _a.dataItemKey, _e = _a.groupField, groupField = _e === void 0 ? '' : _e, textField = _a.textField, _f = _a.skipDisabledItems, skipDisabledItems = _f === void 0 ? true : _f;
228
230
  var value = _this.value;
229
231
  var selectedIndex = data.findIndex(function (i) { return areSame(i, value, dataItemKey); });
@@ -261,6 +263,12 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
261
263
  }
262
264
  }
263
265
  }
266
+ else if (opened && keyCode === Keys.pageUp) {
267
+ _this.base.scrollPopupByPageSize(-1);
268
+ }
269
+ else if (opened && keyCode === Keys.pageDown) {
270
+ _this.base.scrollPopupByPageSize(1);
271
+ }
264
272
  else if (opened && keyCode === Keys.enter) {
265
273
  var focusedIndex = _this.getFocusedIndex();
266
274
  if (_this.haveFocusedItemAndDataNotEmpty(data, focusedIndex)) {
@@ -160,7 +160,7 @@ export default class DropDownBase {
160
160
  scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
161
161
  /**
162
162
  * @hidden
163
- * Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
163
+ * Scrolls the data inside the popup of a selected DropDown by `one page`. The page size
164
164
  * depends on the height of the popup.
165
165
  *
166
166
  * @param {number} direction Defines the direction(Up/Down) in which the page will be moved
@@ -101,7 +101,7 @@ var DropDownBase = /** @class */ (function () {
101
101
  };
102
102
  /**
103
103
  * @hidden
104
- * Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
104
+ * Scrolls the data inside the popup of a selected DropDown by `one page`. The page size
105
105
  * depends on the height of the popup.
106
106
  *
107
107
  * @param {number} direction Defines the direction(Up/Down) in which the page will be moved
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dropdowns',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1694445080,
8
+ publishDate: 1694449449,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -227,6 +227,8 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
227
227
  }
228
228
  };
229
229
  _this.handleKeyDown = function (event) {
230
+ // The following added here to prevent the propagation of the keyDown event when the filter prop is set to true
231
+ event && event.stopPropagation && event.stopPropagation();
230
232
  var _a = _this.props, _b = _a.data, data = _b === void 0 ? [] : _b, filterable = _a.filterable, disabled = _a.disabled, defaultItem = _a.defaultItem, _c = _a.leftRightKeysNavigation, leftRightKeysNavigation = _c === void 0 ? true : _c, _d = _a.virtual, virtual = _d === void 0 ? { skip: 0, total: 0, pageSize: 0 } : _d, dataItemKey = _a.dataItemKey, _e = _a.groupField, groupField = _e === void 0 ? '' : _e, textField = _a.textField, _f = _a.skipDisabledItems, skipDisabledItems = _f === void 0 ? true : _f;
231
233
  var value = _this.value;
232
234
  var selectedIndex = data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
@@ -264,6 +266,12 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
264
266
  }
265
267
  }
266
268
  }
269
+ else if (opened && keyCode === kendo_react_common_1.Keys.pageUp) {
270
+ _this.base.scrollPopupByPageSize(-1);
271
+ }
272
+ else if (opened && keyCode === kendo_react_common_1.Keys.pageDown) {
273
+ _this.base.scrollPopupByPageSize(1);
274
+ }
267
275
  else if (opened && keyCode === kendo_react_common_1.Keys.enter) {
268
276
  var focusedIndex = _this.getFocusedIndex();
269
277
  if (_this.haveFocusedItemAndDataNotEmpty(data, focusedIndex)) {
@@ -160,7 +160,7 @@ export default class DropDownBase {
160
160
  scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
161
161
  /**
162
162
  * @hidden
163
- * Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
163
+ * Scrolls the data inside the popup of a selected DropDown by `one page`. The page size
164
164
  * depends on the height of the popup.
165
165
  *
166
166
  * @param {number} direction Defines the direction(Up/Down) in which the page will be moved
@@ -103,7 +103,7 @@ var DropDownBase = /** @class */ (function () {
103
103
  };
104
104
  /**
105
105
  * @hidden
106
- * Scrolls the data inside the popup of a selected DropDown by `one page'. The page size
106
+ * Scrolls the data inside the popup of a selected DropDown by `one page`. The page size
107
107
  * depends on the height of the popup.
108
108
  *
109
109
  * @param {number} direction Defines the direction(Up/Down) in which the page will be moved
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-dropdowns',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1694445080,
11
+ publishDate: 1694449449,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };