@progress/kendo-react-dropdowns 5.0.0-dev.202201182040 → 5.0.2-dev.202201241503

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.
@@ -291,13 +291,13 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
291
291
  event.preventDefault();
292
292
  }, [controlled, props.onChange, isOpen, opened, onClose]);
293
293
  var onExpand = React.useCallback(function (event) {
294
+ event.syntheticEvent.stopPropagation();
294
295
  if (props.onExpandChange && target.current) {
295
296
  var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
296
297
  var expandEvent = {
297
298
  level: toLevel(itemHierarchicalIndex),
298
299
  item: item, nativeEvent: nativeEvent, syntheticEvent: syntheticEvent, target: target.current
299
300
  };
300
- syntheticEvent.stopPropagation();
301
301
  props.onExpandChange.call(undefined, expandEvent);
302
302
  }
303
303
  }, [props.onExpandChange]);
@@ -27,7 +27,7 @@ var TagList = /** @class */ (function (_super) {
27
27
  var _a = this.props, data = _a.data, guid = _a.guid, focused = _a.focused, tagRender = _a.tagRender, TagComponent = _a.tag, onTagDelete = _a.onTagDelete, size = _a.size;
28
28
  return (React.createElement(React.Fragment, null,
29
29
  data.map(function (tagData, index) {
30
- var tag = TagComponent ? (React.createElement(TagComponent, { tagData: tagData, guid: guid, focusedTag: focused, onTagDelete: onTagDelete })) : (React.createElement(Chip, { id: "tag-" + guid + "-" + tagData.text.replace(/\s+/g, '-'), "aria-selected": true, role: "option", "aria-setsize": data.length, key: tagData.text + index, text: tagData.text, removable: true, removeIcon: 'k-i-close', onRemove: function (e) { return onTagDelete.call(undefined, tagData.data, e.syntheticEvent); }, onMouseDown: preventDefault, onClick: stopPropagation, className: tagData === focused ? 'k-focus' : undefined, size: size }));
30
+ var tag = TagComponent ? (React.createElement(TagComponent, { key: tagData.text + index, tagData: tagData, guid: guid, focusedTag: focused, onTagDelete: onTagDelete })) : (React.createElement(Chip, { id: "tag-" + guid + "-" + tagData.text.replace(/\s+/g, '-'), "aria-selected": true, role: "option", "aria-setsize": data.length, key: tagData.text + index, text: tagData.text, removable: true, removeIcon: 'k-i-close', onRemove: function (e) { return onTagDelete.call(undefined, tagData.data, e.syntheticEvent); }, onMouseDown: preventDefault, onClick: stopPropagation, className: tagData === focused ? 'k-focus' : undefined, size: size }));
31
31
  return tagRender ? tagRender(tagData, tag) : tag;
32
32
  }),
33
33
  this.props.children));
@@ -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: 1642536975,
8
+ publishDate: 1643035302,
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
  };
@@ -293,13 +293,13 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
293
293
  event.preventDefault();
294
294
  }, [controlled, props.onChange, isOpen, opened, onClose]);
295
295
  var onExpand = React.useCallback(function (event) {
296
+ event.syntheticEvent.stopPropagation();
296
297
  if (props.onExpandChange && target.current) {
297
298
  var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
298
299
  var expandEvent = {
299
300
  level: toLevel(itemHierarchicalIndex),
300
301
  item: item, nativeEvent: nativeEvent, syntheticEvent: syntheticEvent, target: target.current
301
302
  };
302
- syntheticEvent.stopPropagation();
303
303
  props.onExpandChange.call(undefined, expandEvent);
304
304
  }
305
305
  }, [props.onExpandChange]);
@@ -29,7 +29,7 @@ var TagList = /** @class */ (function (_super) {
29
29
  var _a = this.props, data = _a.data, guid = _a.guid, focused = _a.focused, tagRender = _a.tagRender, TagComponent = _a.tag, onTagDelete = _a.onTagDelete, size = _a.size;
30
30
  return (React.createElement(React.Fragment, null,
31
31
  data.map(function (tagData, index) {
32
- var tag = TagComponent ? (React.createElement(TagComponent, { tagData: tagData, guid: guid, focusedTag: focused, onTagDelete: onTagDelete })) : (React.createElement(kendo_react_buttons_1.Chip, { id: "tag-" + guid + "-" + tagData.text.replace(/\s+/g, '-'), "aria-selected": true, role: "option", "aria-setsize": data.length, key: tagData.text + index, text: tagData.text, removable: true, removeIcon: 'k-i-close', onRemove: function (e) { return onTagDelete.call(undefined, tagData.data, e.syntheticEvent); }, onMouseDown: preventDefault, onClick: stopPropagation, className: tagData === focused ? 'k-focus' : undefined, size: size }));
32
+ var tag = TagComponent ? (React.createElement(TagComponent, { key: tagData.text + index, tagData: tagData, guid: guid, focusedTag: focused, onTagDelete: onTagDelete })) : (React.createElement(kendo_react_buttons_1.Chip, { id: "tag-" + guid + "-" + tagData.text.replace(/\s+/g, '-'), "aria-selected": true, role: "option", "aria-setsize": data.length, key: tagData.text + index, text: tagData.text, removable: true, removeIcon: 'k-i-close', onRemove: function (e) { return onTagDelete.call(undefined, tagData.data, e.syntheticEvent); }, onMouseDown: preventDefault, onClick: stopPropagation, className: tagData === focused ? 'k-focus' : undefined, size: size }));
33
33
  return tagRender ? tagRender(tagData, tag) : tag;
34
34
  }),
35
35
  this.props.children));
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-dropdowns',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1642536975,
10
+ publishDate: 1643035302,
11
11
  version: '',
12
12
  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'
13
13
  };