ant-design/ant-design

defaultActiveFirstOption in cascader

Open

#33,763 建立於 2022年1月19日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)TypeScript (98,031 star) (54,612 fork)batch import
Inactivehelp wanted

描述

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Currently, in cascader component, the user has to press the down arrow twice to select the first option (once to open the cascader options list and second to select the first option). However, if the first option is ative by default then it will reduce the need of pressing down key for selecting the first option.

What does the proposed API look like?

The Select component alreadty has a defaultActiveFirstOption prop. We can use the same syntax for the cascader component as well.

貢獻者指南