Applet filled pit --bindconfirm event

I. Introduction

  When you want to trigger some way in the mobile phone soft keyboard, you can use bindconfirm event input tag. The role of this event is that when you click on OK in the soft keyboard when you specify the trigger method .

  You can also use the confirm-type specifies the name of the button to confirm the soft keyboard. For example, you use the search box to do this, then you can specify to confirm-type = "search". Specific code

  <input type="text"  placeholder="搜索" value="{{search_value}}"  bindinput="inputTyping" bindconfirm="onSearch" confirm-type="search"/>

  But when I make an issue of internal search, highlighting the need to increase the content of the label, and then repeat the onLoad rendering.

  But it has done after discovery, after the internal search Click OK, just flash once to highlight content, gone.

  I find debug. When you click search, actually rendered on both sides. That is called twice onLoad method, while the second does not add a highlight label, it does not highlight the content.

 

II. Solution

  After confirmation, this has not been resolved is a legacy bug. Look on the developer platform last year, it was suggested the problem.

  When calling bindconfirm original event, do not wrap it in some special tags.

  For example, I made a page on the floating search box, using a movable-area label

  

 

  

Guess you like

Origin www.cnblogs.com/haizhongdenta/p/12022036.html