mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
fix(cascader): cascader dropdown placement using isRtl (#40109)
* fix(cascader): cascader dropdown placement using isRtl * fix(cascader): remove extra SelectCommonPlacement type assertion Co-authored-by: Ehsan Khakian <e.khakian@liateam.net>
This commit is contained in:
parent
e23c5a4f9d
commit
ea943f7e70
@ -272,9 +272,7 @@ const Cascader = React.forwardRef((props: CascaderProps<any>, ref: React.Ref<Cas
|
||||
if (placement !== undefined) {
|
||||
return placement;
|
||||
}
|
||||
return direction === 'rtl'
|
||||
? ('bottomRight' as SelectCommonPlacement)
|
||||
: ('bottomLeft' as SelectCommonPlacement);
|
||||
return isRtl ? 'bottomRight' : 'bottomLeft';
|
||||
};
|
||||
|
||||
// ==================== Render =====================
|
||||
|
Loading…
Reference in New Issue
Block a user