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

SearchBar 样式问题 #10

Closed
stonexer opened this issue Nov 23, 2016 · 4 comments
Closed

SearchBar 样式问题 #10

stonexer opened this issue Nov 23, 2016 · 4 comments

Comments

@stonexer
Copy link

  • 开发工具中取消按钮的 hidden 更新为 false 无效,无法显示。(应该是开发工具的 bug)
  • SearchBar input 超长时,整个 SearchBar 溢出屏幕,加上 max-width: 100% 测试 ok。
@BearJ
Copy link
Collaborator

BearJ commented Nov 24, 2016

@stonexer 谢谢。不过searchbar input为啥会超长的?是人为设置了它的宽度?

@stonexer
Copy link
Author

@BearJ 因为输入了超长的内容

@stonexer
Copy link
Author

@BearJ 重新复现了下,发现是我改造之后的问题。case 如下:

没有使用 weui-search-bar__label,一直显示 weui-search-bar__box;
bindBlur 的时候没有清空 input,同时 hidden 掉 weui-search-bar__cancel-btn;
此时如果 input 超长,会溢出屏幕。

我想这不应该是 weui 的问题了。如果有相似需求的,可以考虑给 weui-search-bar__form 加上 max-width: 100% 的限制。

@BearJ
Copy link
Collaborator

BearJ commented Nov 28, 2016

赞,谢谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants