mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
6c32399bd4
* chore: always showArrow * test: update snapshot * fix: autoComplete arrow logic * test: update snapshot * test: update snapshot * test: update snapshot * test: update snapshot
10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
/**
|
|
* Since Select, TreeSelect, Cascader is same Select like component.
|
|
* We just use same hook to handle this logic.
|
|
*
|
|
* If `showArrow` not configured, always show it.
|
|
*/
|
|
export default function useShowArrow(showArrow?: boolean) {
|
|
return showArrow ?? true;
|
|
}
|