Skip to content

a-table在a-tabs内使用时,横向滚动条无法通过左右方向键控制滚动 #8275

@HyalineSoft

Description

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

Version

4.2.1

Environment

Windows10,Edge浏览器,版本 138.0.3351.65 (正式版本) (64 位),"vue":3.5.13,"ant-design-vue": "4.2.1","vite": "^6.0.3"

Reproduction link

Edit on CodeSandbox

Steps to reproduce

上面的表格被嵌套在Tab组件中,用鼠标点击上面的表格内任意位置,然后用左右方向键控制滚动,但结果是无效

What is expected?

希望像下面的表格那样,用鼠标点击表格内任意位置,可以横向滚动

What is actually happening?

实际发现被嵌套在Tab内的表格,无法用方向键控制横向滚动


偶然发现,如果被嵌套在Tab内的表格有“展开”或“排序”按钮,点击它使其保持焦点状态,这时候可以用左右方向键控制横向滚动条移动

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions