Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[popup] 在popup中存在文本框的时候,唤起时,安卓真机下显示会有问题 #1423

Closed
Zlianxin opened this issue Jan 6, 2023 · 6 comments
Assignees
Labels
bug Something isn't working in progress issue or pull request is in progress

Comments

@Zlianxin
Copy link

Zlianxin commented Jan 6, 2023

tdesign-miniprogram 版本

0.33.0

重现链接

https://gitee.com/jinyun0927/question_20230126

重现步骤

在popup中加入文本输入框,点击按钮后唤起popup

期望结果

显示正常

实际结果

iOS下,显示正常,
但是在Android下,唤起是popup会全屏显示

框架版本

小程序

基础库版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2023

♥️ 有劳 @deantian @gnauhca 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Zlianxin

@LeeJim
Copy link
Collaborator

LeeJim commented Jan 11, 2023

可以提供下机型吗

@LeeJim LeeJim added the question This is a question, not a bug label Jan 11, 2023
@Zlianxin
Copy link
Author

可以提供下机型吗

录屏中出现问题的是,华为Mate40,系统是Harmony 3.0
之前拿同事的 OPPO 真我GT Neo3 也出现了同样的问题

@LeeJim LeeJim added bug Something isn't working in progress issue or pull request is in progress and removed question This is a question, not a bug labels Mar 8, 2023
@anlyyao anlyyao self-assigned this Mar 8, 2023
@anlyyao
Copy link
Collaborator

anlyyao commented Mar 9, 2023

@Zlianxin 造成该问题的原因是,input组件内嵌在窗体组件中时,安卓机型上 focus=“{{false}}” 会失效,这个问题在组件层上我目前还没有找到合适的方法。但是在业务处理上,我可以提供一个简易的解决方案,你可以 在input组件上,加上 disabled="{{!visible}}", 利用 disabled 禁止 input 在页面初始化时的自动聚焦。

<t-popup visible="{{visible}}" bind:visible-change="onVisibleChange" placement="bottom" close-btn="{{true}}">
  <view class="popup">
    <view class="popup-title">充值金额</view>
    <view class="moneyinput">
      <t-input cursor-spacing="50" disabled="{{!visible}}" label="slot" type="digit" bindchange="onlyNumber" bindfocus="focusHandle" borderless="{{false}}" placeholder="请输入金额">
      </t-input>
    </view>
    <view><button class="submit-btn" catchtap="onconfirmPay">确定</button></view>
  </view>
</t-popup>

@LeeJim
Copy link
Collaborator

LeeJim commented Aug 16, 2023

fixed by #2209
升级至 1.1.14 以上版本即可

@LeeJim LeeJim closed this as completed Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress issue or pull request is in progress
Projects
None yet
Development

No branches or pull requests

3 participants