@douyinfe/semi-ui 2.38.3-alpha.2-patch-table-datepicker → 2.38.3-alpha.2-path-settimeout

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.
@@ -18533,6 +18533,7 @@ class foundation_Tooltip extends foundation {
18533
18533
  this._adapter.unregisterClickOutsideHandler();
18534
18534
  this.unBindResizeEvent();
18535
18535
  this.unBindScrollEvent();
18536
+ clearTimeout(this._timer);
18536
18537
  }
18537
18538
  _bindTriggerEvent(triggerEventSet) {
18538
18539
  this._adapter.registerTriggerEvent(triggerEventSet);
@@ -49841,14 +49842,7 @@ class DatePickerFoundation extends foundation {
49841
49842
  }
49842
49843
  handlePanelVisibleChange(visible) {
49843
49844
  if (visible) {
49844
- // this is a hack for macOS + Chrome
49845
- // for internal use only
49846
- setTimeout(() => {
49847
- this._adapter.setInsetInputFocus();
49848
- // 100 is a magic number
49849
- // <10 is not ok
49850
- // >= 10 is ok
49851
- }, 100);
49845
+ this._adapter.setInsetInputFocus();
49852
49846
  /**
49853
49847
  * After the panel is closed, the trigger input is disabled
49854
49848
  * 面板关闭后,trigger input 禁用
@@ -53450,8 +53444,8 @@ class ScrollItem extends BaseComponent {
53450
53444
  key: prefixKey + index
53451
53445
  }, events, {
53452
53446
  className: cls,
53447
+ // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
53453
53448
  role: "option",
53454
- "aria-selected": selected,
53455
53449
  "aria-disabled": item.disabled
53456
53450
  }), text)
53457
53451
  );
@@ -61507,7 +61501,9 @@ class SubNavFoundation extends foundation {
61507
61501
  // this.log('invoke SubNavFoundation init()');
61508
61502
  this._timer = null;
61509
61503
  }
61510
- destroy() {} // eslint-disable-line
61504
+ destroy() {
61505
+ this.clearDelayTimer();
61506
+ }
61511
61507
  clearDelayTimer() {
61512
61508
  if (this._timer) {
61513
61509
  clearTimeout(this._timer);