You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2018/11/05 07:48:41 UTC

[incubator-weex] branch master updated: [WEEX-612][android] Fixed after input component default set a string on android platform, and then remove it, not trigger input event. (#1522)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 77c9219  [WEEX-612][android] Fixed after input component default set  a string  on android platform, and then remove it, not trigger input event. (#1522)
77c9219 is described below

commit 77c92197790573f82981bed218eb77d555cda4a2
Author: 黄立 <hu...@hotmail.com>
AuthorDate: Mon Nov 5 15:48:33 2018 +0800

    [WEEX-612][android] Fixed after input component default set  a string  on android platform, and then remove it, not trigger input event. (#1522)
---
 .../main/java/com/taobao/weex/ui/component/AbstractEditComponent.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
index e6a48c2..ce918e6 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/AbstractEditComponent.java
@@ -350,6 +350,7 @@ public abstract class AbstractEditComponent extends WXComponent<WXEditText> {
         public void onTextChanged(CharSequence s, int start, int before, int count) {
           if (mIgnoreNextOnInputEvent) {
             mIgnoreNextOnInputEvent = false;
+            mBeforeText = s.toString();
             return;
           }