diff --git a/components/cascader/style/entry.less b/components/cascader/style/entry.less index 03f5202ce9b..07ede2af3aa 100644 --- a/components/cascader/style/entry.less +++ b/components/cascader/style/entry.less @@ -1,4 +1,5 @@ @import './index.less'; +@import './patch.less'; // style dependencies @import '../../empty/style/index.less'; @import '../../input/style/index.less'; diff --git a/components/cascader/style/patch.less b/components/cascader/style/patch.less new file mode 100644 index 00000000000..65041f1f047 --- /dev/null +++ b/components/cascader/style/patch.less @@ -0,0 +1,3 @@ +.ant-cascader-menus { + position: relative; +} \ No newline at end of file diff --git a/components/core/overlay/overlay-position.ts b/components/core/overlay/overlay-position.ts index e537a25c7bc..9c00bf5fcb7 100644 --- a/components/core/overlay/overlay-position.ts +++ b/components/core/overlay/overlay-position.ts @@ -26,7 +26,8 @@ export const POSITION_MAP: { [key: string]: ConnectionPositionPair } = { }; export const DEFAULT_TOOLTIP_POSITIONS = [POSITION_MAP.top, POSITION_MAP.right, POSITION_MAP.bottom, POSITION_MAP.left]; -export const DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.topLeft]; + +export const DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topLeft, POSITION_MAP.topRight]; export const DEFAULT_MENTION_TOP_POSITIONS = [ new ConnectionPositionPair({ originX: 'start', originY: 'bottom' }, { overlayX: 'start', overlayY: 'bottom' }),