Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[DropdownMenu] 展开后向上滚动,菜单栏和展开项分离了 #2401

Closed
vicorn opened this issue Oct 19, 2023 · 3 comments · Fixed by #2606
Closed

[DropdownMenu] 展开后向上滚动,菜单栏和展开项分离了 #2401

vicorn opened this issue Oct 19, 2023 · 3 comments · Fixed by #2606
Labels
bug Something isn't working IssueShoot middle middle level of difficulties

Comments

@vicorn
Copy link

vicorn commented Oct 19, 2023

tdesign-miniprogram 版本

1.2.3

重现链接

No response

重现步骤

  1. 代码如下
<view>
  <scroll-view scroll-y
    style="height:2000px;background-color: gray;">
    <view style="height: 200px;"></view>
    <t-dropdown-menu>
      <t-dropdown-item label="筛选"
        bindchange="onChange">
        <t-tree-select options="{{options}}"
          value="{{value}}"
          bind:change="onChange" />
      </t-dropdown-item>
      <t-dropdown-item label="全部" />
    </t-dropdown-menu>
  </scroll-view>
</view>
  1. 向上滚动
  2. 效果如下
    企业微信截图_20231019102017

期望结果

展开项跟随菜单栏一起滚动上去

实际结果

向上滚动后,菜单栏向上滚动,展开项原地不动。
ps: 另外还有两个问题

  1. 此时TreeSelect的左侧栏,在真机中溢出不能滚动,右侧可以,推测是左侧高度设置了100%原因。
  2. 此时按住菜单栏也可以滚动,发生滚动穿透,这种该如何解决。

基础库版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 3
  • 期望完成时间: 2024-02-27
  • 开发难度: 中
  • 参与人数: 1
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
@github-actions
Copy link
Contributor

👋 @vicorn,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@TANGYC-CS
Copy link

确实 发现后偶然点进来一看就看到了这条issue

@anlyyao anlyyao added bug Something isn't working middle middle level of difficulties labels Nov 20, 2023
@Wen1kang
Copy link
Collaborator

展开菜单栏后,是不允许滑动的遮罩固定
如果滑动,菜单栏则收起

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working IssueShoot middle middle level of difficulties
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants