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

SreachBar less处理问题 以及取消按钮显示不全问题 #650

Closed
deerW opened this issue Dec 20, 2016 · 8 comments
Closed

SreachBar less处理问题 以及取消按钮显示不全问题 #650

deerW opened this issue Dec 20, 2016 · 8 comments

Comments

@deerW
Copy link

deerW commented Dec 20, 2016

本地环境

  • antd-mobile 版本:0.9.*
  • 浏览器 (或标明是 react-native) 及其版本:iphone7 plus 微信浏览器
  • 运行环境及其版本:mac

你做了什么?

引入 antd-mobile 的 SearchBar
在 iphone7 plus微信浏览器上 “取消”按钮显示不全

你期待的结果是:

1.不需要自己处理less
2.样式显示跟官网一样

实际上的结果:

1.需要自己处理less
2.

@warmhug
Copy link
Contributor

warmhug commented Dec 20, 2016

模拟器里没发现此问题,欢迎帮忙排查下,多谢

@deerW
Copy link
Author

deerW commented Dec 21, 2016

有一台手机出现了这个问题,其他手机木有问题。但是less的问题希望可以处理一下,谢谢。 @warmhug

@warmhug
Copy link
Contributor

warmhug commented Dec 21, 2016

less 问题和这个一样吗?#599 (comment)

@deerW
Copy link
Author

deerW commented Dec 21, 2016

我的配置是没有问题的,当时引入searchBar的时候报错。后来在webpack.json中加了less配置才好
image

@deerW
Copy link
Author

deerW commented Dec 21, 2016

使用searchBar的时候又发现了一个bug,找的我好辛苦。。是这样的:
placeholder 属性会使input框内的文字无法获取焦点
当placeholder设置较长时,再输入文字,点击placeholder范围内的区域是无法输入的。只有点击后面的空白部分才可以获取焦点,官方demo可以复现,只要把placeholder的值再加长一些更好复现。这个问题需要帮忙解决一下,谢谢。 @warmhug

@warmhug
Copy link
Contributor

warmhug commented Dec 21, 2016

已发现问题,下个版本修复。你可以本地先覆盖下样式、可临时解决问题

.am-search-synthetic-ph {
  z-index: 1!important;
}

warmhug added a commit that referenced this issue Dec 21, 2016
warmhug added a commit that referenced this issue Dec 21, 2016
@deerW
Copy link
Author

deerW commented Dec 22, 2016

好的,谢谢。

@lock
Copy link

lock bot commented May 28, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants