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

Bug:wxSearchBlur与其他事件设置数据时的冲突 #3

Open
eightHundreds opened this issue Apr 16, 2017 · 7 comments
Open

Bug:wxSearchBlur与其他事件设置数据时的冲突 #3

eightHundreds opened this issue Apr 16, 2017 · 7 comments

Comments

@eightHundreds
Copy link

现象:
在模拟器上正常,在真机上发现点击搜索历史项时搜索栏内容并不改变,或者改变后瞬间变回去。

初步猜想:
当wxSearchKeyTap触发后几乎瞬间,wxSearchBlur触发。后者有设置Data的操作,可能这里的Data是旧的。

@eightHundreds
Copy link
Author

使用手机:用了1年的小米4

@icindy
Copy link
Owner

icindy commented Apr 16, 2017

好的 谢谢反馈

@acio0
Copy link

acio0 commented Jul 18, 2017

后来解决了吗?

@youngjuning
Copy link

引用的时候将:

wxSearchBlur: function(e){
    WxSearch.wxSearchBlur(e,this);
  },

改成:

wxSearchBlur: function(e){
    WxSearch.wxSearchAddHisKey(this);// 添加历史搜索记录
    this.GetKeyList(this.data.wxSearchData.value);// 后端交互
  },

@youngjuning
Copy link

呵呵,如上处理以后,模拟器不行了。

@zwyao
Copy link

zwyao commented Dec 19, 2018

不要设置wxSearchBlur处理函数

@alber68
Copy link

alber68 commented Sep 27, 2019

GetKeyList 这个函数没发现,另外修改后无法运行

引用的时候将:

wxSearchBlur: function(e){
    WxSearch.wxSearchBlur(e,this);
  },

改成:

wxSearchBlur: function(e){
    WxSearch.wxSearchAddHisKey(this);// 添加历史搜索记录
    this.GetKeyList(this.data.wxSearchData.value);// 后端交互
  },

GetKeyList 这个函数没发现,另外修改后无法运行

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

6 participants