@acrool/react-picker 1.0.0-alpha.0 → 1.0.1-alpha.0

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.
@@ -2,7 +2,7 @@ import React, { ReactNode, RefObject } from 'react';
2
2
  interface IProps {
3
3
  children: ReactNode;
4
4
  isDebug?: boolean;
5
- anchorRef: RefObject<HTMLDivElement>;
5
+ anchorRef: RefObject<HTMLDivElement | null>;
6
6
  onKeyDown?: (e: React.KeyboardEvent) => void;
7
7
  isVisibleMask?: boolean;
8
8
  }
@@ -12,4 +12,4 @@ export declare function getScrollParent(element: HTMLElement): HTMLElement | Win
12
12
  * @param importantPosition 強制指定位置
13
13
  * @param setVertical 設定垂直(top/bottom, 讓選擇棄可以決定順序
14
14
  */
15
- export declare const updatePosition: (anchorRef: RefObject<HTMLElement>, pickerRef: RefObject<HTMLElement>, setVertical: (vertical: EVertical) => void, importantPosition?: IPosition) => void;
15
+ export declare const updatePosition: (anchorRef: RefObject<HTMLElement | null>, pickerRef: RefObject<HTMLElement | null>, setVertical: (vertical: EVertical) => void, importantPosition?: IPosition) => void;