-
Notifications
You must be signed in to change notification settings - Fork 277
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
Labels
Comments
👋 @Zlianxin,感谢给 TDesign 提出了 issue。 |
可以提供下机型吗 |
录屏中出现问题的是,华为Mate40,系统是Harmony 3.0 |
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
@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> |
fixed by #2209 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-miniprogram 版本
0.33.0
重现链接
https://gitee.com/jinyun0927/question_20230126
重现步骤
在popup中加入文本输入框,点击按钮后唤起popup
期望结果
显示正常
实际结果
iOS下,显示正常,
但是在Android下,唤起是popup会全屏显示
框架版本
小程序
基础库版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: