@douyinfe/semi-ui 2.15.0 → 2.15.1

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.
@@ -26052,11 +26052,11 @@ function getAncestorNodeByRole(curElement, role) {
26052
26052
  }
26053
26053
 
26054
26054
  return curElement.parentElement;
26055
- } // According to the Id, find the corresponding data-popupId element
26055
+ } // According to the Id, find the corresponding data-popupid element
26056
26056
 
26057
26057
  function getMenuButton(focusableEle, Id) {
26058
26058
  for (let i = 0; i < focusableEle.length; i++) {
26059
- const curAriDescribedby = focusableEle[i].attributes['data-popupId'];
26059
+ const curAriDescribedby = focusableEle[i].attributes['data-popupid'];
26060
26060
 
26061
26061
  if (curAriDescribedby && curAriDescribedby.value === Id) {
26062
26062
  return focusableEle[i];
@@ -29936,7 +29936,7 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
29936
29936
  }
29937
29937
  },
29938
29938
  tabIndex: 0,
29939
- 'data-popupId': id
29939
+ 'data-popupid': id
29940
29940
  })); // If you do not add a layer of div, in order to bind the events and className in the tooltip, you need to cloneElement children, but this time it may overwrite the children's original ref reference
29941
29941
  // So if the user adds ref to the content, you need to use callback ref: https://github.com/facebook/react/issues/8873
29942
29942
 
@@ -68152,7 +68152,7 @@ class foundation_DropdownFoundation extends foundation {
68152
68152
  getMenuItemNodes(target) {
68153
68153
  var _context;
68154
68154
 
68155
- const id = target.attributes['data-popupId'].value;
68155
+ const id = target.attributes['data-popupid'].value;
68156
68156
  const menuWrapper = document.getElementById(id); // if has dropdown item, the item must wrapped by li
68157
68157
 
68158
68158
  return menuWrapper ? filter_default()(_context = from_default()(menuWrapper.getElementsByTagName('li'))).call(_context, item => item.ariaDisabled === "false") : null;
@@ -68223,7 +68223,7 @@ class menuFoundation_DropdownMenuFoundation extends foundation {
68223
68223
  const trigger = this._adapter.getContext('trigger');
68224
68224
 
68225
68225
  if (trigger === 'custom') {
68226
- const menuButton = menu && getMenuButton(document.querySelectorAll("[data-popupId]"), menu.id);
68226
+ const menuButton = menu && getMenuButton(document.querySelectorAll("[data-popupid]"), menu.id);
68227
68227
  menuButton.focus();
68228
68228
  }
68229
68229
  }